mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- mediaplayer: formatting code using astyle
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
@@ -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