- movieplayer/record: try to fix timeshift stop; ...

Timeshift was stopped immediately when mpkey_stop was pressed.
After that the record/timeshift menu was shown, but is wasn't possilble
to return to timeshift record.

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-07-23 23:55:19 +02:00
committed by Thilo Graf
parent 759504d149
commit 56442c99bd
2 changed files with 17 additions and 3 deletions

View File

@@ -1379,8 +1379,14 @@ void CRecordManager::StartTimeshift()
if(res) if(res)
{ {
CMoviePlayerGui::getInstance().exec(NULL, tmode); CMoviePlayerGui::getInstance().exec(NULL, tmode);
#if 0
/*
ShowMenu() moved to movieplayer.cpp
Function is called when stop key is pressed.
*/
if(g_settings.temp_timeshift && tstarted && autoshift) if(g_settings.temp_timeshift && tstarted && autoshift)
ShowMenu(); ShowMenu();
#endif
} }
} }
} }

View File

@@ -1629,9 +1629,17 @@ void CMoviePlayerGui::PlayFileLoop(void)
} else if ((msg == (neutrino_msg_t) g_settings.mpkey_stop) || msg == CRCInput::RC_home) { } else if ((msg == (neutrino_msg_t) g_settings.mpkey_stop) || msg == CRCInput::RC_home) {
#endif #endif
} else if (msg == (neutrino_msg_t) g_settings.mpkey_stop) { } else if (msg == (neutrino_msg_t) g_settings.mpkey_stop) {
bool timeshift_stopped = false;
if (timeshift != TSHIFT_MODE_OFF)
timeshift_stopped = CRecordManager::getInstance()->ShowMenu();
if (timeshift == TSHIFT_MODE_OFF || timeshift_stopped)
{
playstate = CMoviePlayerGui::STOPPED; playstate = CMoviePlayerGui::STOPPED;
keyPressed = CMoviePlayerGui::PLUGIN_PLAYSTATE_STOP; keyPressed = CMoviePlayerGui::PLUGIN_PLAYSTATE_STOP;
ClearQueue(); ClearQueue();
}
} else if (msg == CRCInput::RC_left || msg == CRCInput::RC_right) { } else if (msg == CRCInput::RC_left || msg == CRCInput::RC_right) {
bool reset_vzap_it = true; bool reset_vzap_it = true;
switch (g_settings.mode_left_right_key_tv) switch (g_settings.mode_left_right_key_tv)