gui/mediaplayer.cpp: make upnpbrowsergui static

This commit is contained in:
[CST] Focus
2013-09-03 11:42:09 +04:00
parent 418588e14a
commit e2f4eff598

View File

@@ -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