mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 02:41:12 +02:00
gui/mediaplayer.cpp: disable audio play while movieplayer playback active
Origin commit data
------------------
Branch: ni/coolstream
Commit: 55fe41a626
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2016-03-02 (Wed, 02 Mar 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -154,20 +154,20 @@ int CMediaPlayerMenu::initMenuMedia(CMenuWidget *m, CPersonalizeGui *p)
|
|||||||
#endif
|
#endif
|
||||||
CMenuWidget *moviePlayer = NULL;
|
CMenuWidget *moviePlayer = NULL;
|
||||||
|
|
||||||
|
bool enabled = !CMoviePlayerGui::getInstance().Playing();
|
||||||
if (usage_mode != MODE_VIDEO)
|
if (usage_mode != MODE_VIDEO)
|
||||||
{
|
{
|
||||||
//audio player
|
//audio player
|
||||||
neutrino_msg_t audio_rc = usage_mode == MODE_AUDIO ? CRCInput::RC_audio : g_settings.easymenu ? CRCInput::RC_green : CRCInput::RC_red;
|
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);
|
fw_audio->setHint(NEUTRINO_ICON_HINT_APLAY, LOCALE_MENU_HINT_APLAY);
|
||||||
|
|
||||||
//internet player
|
//internet player
|
||||||
neutrino_msg_t inet_rc = usage_mode == MODE_AUDIO ? CRCInput::RC_www : g_settings.easymenu ? CRCInput::RC_blue : CRCInput::RC_green;
|
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);
|
fw_inet->setHint(NEUTRINO_ICON_HINT_INET_RADIO, LOCALE_MENU_HINT_INET_RADIO);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool enabled = !CMoviePlayerGui::getInstance().Playing();
|
|
||||||
if (usage_mode == MODE_DEFAULT)
|
if (usage_mode == MODE_DEFAULT)
|
||||||
{
|
{
|
||||||
//movieplayer
|
//movieplayer
|
||||||
|
Reference in New Issue
Block a user