neutrino: add more RC_playpause handling

Origin commit data
------------------
Branch: ni/coolstream
Commit: 764b25542f
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-19 (Tue, 19 Dec 2017)

Origin message was:
------------------
- neutrino: add more RC_playpause handling

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-12-19 10:58:44 +01:00
parent 7dbb4d3d0b
commit 938b53bb4b
9 changed files with 62 additions and 30 deletions

View File

@@ -1630,6 +1630,17 @@ void CMoviePlayerGui::PlayFileLoop(void)
neutrino_msg_data_t data;
g_RCInput->getMsg(&msg, &data, 10); // 1 secs..
// handle CRCInput::RC_playpause key
bool handle_key_play = true;
bool handle_key_pause = true;
if (g_settings.mpkey_play == g_settings.mpkey_pause)
{
if (playstate == CMoviePlayerGui::PLAY)
handle_key_play = false;
else if (playstate == CMoviePlayerGui::PAUSE)
handle_key_pause = false;
}
//NI - bisectional jumps
if (bisection_loop > -1)
bisection_loop++;
@@ -1821,7 +1832,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
g_videoSettings->next43Mode();
} else if (msg == (neutrino_msg_t) g_settings.key_switchformat) {
g_videoSettings->SwitchFormat();
} else if (msg == (neutrino_msg_t) g_settings.mpkey_play) {
} else if (msg == (neutrino_msg_t) g_settings.mpkey_play && handle_key_play) {
if (time_forced) {
time_forced = false;
FileTimeOSD->kill();
@@ -1865,7 +1876,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
delete playlist;
enableOsdElements(MUTE);
}
} else if (msg == (neutrino_msg_t) g_settings.mpkey_pause) {
} else if (msg == (neutrino_msg_t) g_settings.mpkey_pause && handle_key_pause) {
if (time_forced) {
time_forced = false;
FileTimeOSD->kill();