mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
- 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:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user