- movieplayer: fix RC_ok handling while infoviewer is displayed; ...

If filelist is empty or movie in filelist wasn't changed, just quit infoviewer
as in tv-mode. Otherwise start choosen movie.

Signed-off-by: Thilo Graf <dbt@novatux.de>

# Conflicts:
#	src/gui/movieplayer.cpp
This commit is contained in:
svenhoefer
2018-02-20 20:36:42 +01:00
committed by Thilo Graf
parent 7a93447496
commit 7c3c4ab446

View File

@@ -1646,11 +1646,14 @@ void CMoviePlayerGui::PlayFileLoop(void)
}
} else if (msg == (neutrino_msg_t) g_settings.key_quickzap_up || msg == (neutrino_msg_t) g_settings.key_quickzap_down) {
quickZap(msg);
} else if (fromInfoviewer && msg == CRCInput::RC_ok && !filelist.empty()) {
printf("CMoviePlayerGui::%s: start playlist movie #%d\n", __func__, (int)(vzap_it - filelist.begin()));
} else if (fromInfoviewer && msg == CRCInput::RC_ok) {
if (!filelist.empty() && (filelist_it != vzap_it))
{
printf("CMoviePlayerGui::%s: start playlist movie #%d\n", __func__, (int)(vzap_it - filelist.begin()));
playstate = CMoviePlayerGui::STOPPED;
filelist_it = vzap_it;
}
fromInfoviewer = false;
playstate = CMoviePlayerGui::STOPPED;
filelist_it = vzap_it;
} else if (timeshift == TSHIFT_MODE_OFF && !isWebChannel /* && !isYT */ && (msg == (neutrino_msg_t) g_settings.mpkey_next_repeat_mode)) {
repeat_mode = (repeat_mode_enum)((int)repeat_mode + 1);
if (repeat_mode > (int) REPEAT_ALL)