From c6424534e8d748d2e60d46140fce701e3deb2779 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 21 Jan 2015 17:54:11 +0300 Subject: [PATCH] gui/channellist.cpp: disable timeshift stop while timeshift playback in progress --- src/gui/channellist.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 126cc8b21..5a8deec63 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -51,6 +51,7 @@ #include #include #include +#include #include #include @@ -651,7 +652,11 @@ int CChannelList::show() } } else if(!edit_state && !empty && msg == CRCInput::RC_stop ) { //stop recording - if(CRecordManager::getInstance()->RecordingStatus((*chanlist)[selected]->channel_id)) + //if(CRecordManager::getInstance()->RecordingStatus((*chanlist)[selected]->channel_id)) + int recmode = CRecordManager::getInstance()->GetRecordMode((*chanlist)[selected]->channel_id); + bool timeshift = recmode & CRecordManager::RECMODE_TSHIFT; + bool tsplay = CMoviePlayerGui::getInstance().timeshift; + if (recmode && !(timeshift && tsplay)) { if (CRecordManager::getInstance()->AskToStop((*chanlist)[selected]->channel_id)) {