fix RC_tv/RC_radio handling; ...

if we have separate keys for that we don't need to switch mode


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1be1a64fcd
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-28 (Sat, 28 Oct 2017)

Origin message was:
------------------
- fix RC_tv/RC_radio handling; ...

if we have separate keys for that we don't need to switch mode


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-10-28 14:18:09 +02:00
parent 3356fc64a9
commit 0287193bd3

View File

@@ -2938,7 +2938,18 @@ void CNeutrinoApp::RealRun()
StartSubtitles();
}
else if (((msg == CRCInput::RC_tv) || (msg == CRCInput::RC_radio)) && (g_settings.key_tvradio_mode == (int)CRCInput::RC_nokey)) {
switchTvRadioMode();//used with defined default tv/radio rc key
if (msg == CRCInput::RC_tv)
{
if (mode == mode_radio)
tvMode();
}
else if (msg == CRCInput::RC_radio)
{
if (mode == mode_tv || mode == mode_webtv)
radioMode();
}
else
switchTvRadioMode(); //used with defined default tv/radio rc key
}
/* in case key_subchannel_up/down redefined */
else if( msg == CRCInput::RC_left || msg == CRCInput::RC_right) {