mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
gui/mediaplayer.cpp: make upnpbrowsergui static
This commit is contained in:
@@ -149,7 +149,7 @@ int CMediaPlayerMenu::initMenuMedia(CMenuWidget *m, CPersonalizeGui *p)
|
||||
CMenuForwarder *fw_pviewer = NULL;
|
||||
CPictureViewerGui *pictureviewergui = NULL;
|
||||
#if ENABLE_UPNP
|
||||
CUpnpBrowserGui *upnpbrowsergui = NULL;
|
||||
static CUpnpBrowserGui *upnpbrowsergui = NULL;
|
||||
CMenuForwarder *fw_upnp = NULL;
|
||||
#endif
|
||||
CMenuWidget *moviePlayer = NULL;
|
||||
@@ -185,6 +185,7 @@ int CMediaPlayerMenu::initMenuMedia(CMenuWidget *m, CPersonalizeGui *p)
|
||||
fw_pviewer->setHint(NEUTRINO_ICON_HINT_PICVIEW, LOCALE_MENU_HINT_PICVIEW);
|
||||
#if ENABLE_UPNP
|
||||
//upnp browser
|
||||
if (!upnpbrowsergui)
|
||||
upnpbrowsergui = new CUpnpBrowserGui();
|
||||
fw_upnp = new CMenuForwarder(LOCALE_UPNPBROWSER_HEAD, true, NULL, upnpbrowsergui, NULL, CRCInput::RC_0, NEUTRINO_ICON_BUTTON_0);
|
||||
#endif
|
||||
@@ -237,7 +238,7 @@ int CMediaPlayerMenu::initMenuMedia(CMenuWidget *m, CPersonalizeGui *p)
|
||||
delete personalize;
|
||||
delete pictureviewergui;
|
||||
#if ENABLE_UPNP
|
||||
delete upnpbrowsergui;
|
||||
//delete upnpbrowsergui;
|
||||
#endif
|
||||
|
||||
setUsageMode();//set default usage_mode
|
||||
|
Reference in New Issue
Block a user