mediaplayer: formatting code using astyle

Origin commit data
------------------
Commit: f165006208
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-10-20 (Wed, 20 Oct 2021)

Origin message was:
------------------
- mediaplayer: formatting code using astyle
This commit is contained in:
vanhofen
2021-10-20 19:31:13 +02:00
parent d24bc25c01
commit e61353a728
2 changed files with 60 additions and 60 deletions

View File

@@ -70,7 +70,8 @@ CMediaPlayerMenu* CMediaPlayerMenu::getInstance()
{
static CMediaPlayerMenu *mpm = NULL;
if(!mpm) {
if (!mpm)
{
mpm = new CMediaPlayerMenu();
printf("[neutrino] mediaplayer menu instance created\n");
}
@@ -94,14 +95,14 @@ int CMediaPlayerMenu::exec(CMenuTarget* parent, const std::string &actionKey)
if (audioPlayer == NULL)
audioPlayer = new CAudioPlayerGui();
int res = audioPlayer->exec(NULL, "init");
return res /*menu_return::RETURN_REPAINT*/;
return res;
}
else if (actionKey == "inetplayer")
{
if (inetPlayer == NULL)
inetPlayer = new CAudioPlayerGui(true);
int res = inetPlayer->exec(NULL, "init");
return res; //menu_return::RETURN_REPAINT;
return res;
}
else if (actionKey == "moviebrowser")
{

View File

@@ -54,5 +54,4 @@ class CMediaPlayerMenu : public CMenuTarget
CAudioPlayerGui *getPlayerInstance() { if (audioPlayer != NULL) return audioPlayer; else if (inetPlayer != NULL) return inetPlayer; else return NULL; }
};
#endif