- mediaplayer: formatting code using astyle

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-10-20 19:31:13 +02:00
committed by Thilo Graf
parent 45cf7e0698
commit 24897213a0
2 changed files with 60 additions and 60 deletions

View File

@@ -67,7 +67,8 @@ CMediaPlayerMenu* CMediaPlayerMenu::getInstance()
{
static CMediaPlayerMenu *mpm = NULL;
if(!mpm) {
if (!mpm)
{
mpm = new CMediaPlayerMenu();
printf("[neutrino] mediaplayer menu instance created\n");
}
@@ -91,14 +92,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