mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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")
|
||||
{
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user