mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
gui/mediaplayer.cpp: disable audio play while movieplayer playback active
This commit is contained in:
@@ -154,20 +154,20 @@ int CMediaPlayerMenu::initMenuMedia(CMenuWidget *m, CPersonalizeGui *p)
|
||||
#endif
|
||||
CMenuWidget *moviePlayer = NULL;
|
||||
|
||||
bool enabled = !CMoviePlayerGui::getInstance().Playing();
|
||||
if (usage_mode != MODE_VIDEO)
|
||||
{
|
||||
//audio player
|
||||
neutrino_msg_t audio_rc = usage_mode == MODE_AUDIO ? CRCInput::RC_audio : g_settings.easymenu ? CRCInput::RC_green : CRCInput::RC_red;
|
||||
fw_audio = new CMenuForwarder(LOCALE_MAINMENU_AUDIOPLAYER, true, NULL, this, "audioplayer", audio_rc);
|
||||
fw_audio = new CMenuForwarder(LOCALE_MAINMENU_AUDIOPLAYER, enabled, NULL, this, "audioplayer", audio_rc);
|
||||
fw_audio->setHint(NEUTRINO_ICON_HINT_APLAY, LOCALE_MENU_HINT_APLAY);
|
||||
|
||||
//internet player
|
||||
neutrino_msg_t inet_rc = usage_mode == MODE_AUDIO ? CRCInput::RC_www : g_settings.easymenu ? CRCInput::RC_blue : CRCInput::RC_green;
|
||||
fw_inet = new CMenuForwarder(LOCALE_INETRADIO_NAME, true, NULL, this, "inetplayer", inet_rc);
|
||||
fw_inet = new CMenuForwarder(LOCALE_INETRADIO_NAME, enabled, NULL, this, "inetplayer", inet_rc);
|
||||
fw_inet->setHint(NEUTRINO_ICON_HINT_INET_RADIO, LOCALE_MENU_HINT_INET_RADIO);
|
||||
}
|
||||
|
||||
bool enabled = !CMoviePlayerGui::getInstance().Playing();
|
||||
if (usage_mode == MODE_DEFAULT)
|
||||
{
|
||||
//movieplayer
|
||||
|
Reference in New Issue
Block a user