mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
src/gui/channellist.cpp: stop RECMODE_TSHIFT in play mode
Origin commit data
------------------
Branch: ni/coolstream
Commit: abea6d83d6
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-08-19 (Wed, 19 Aug 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -656,17 +656,23 @@ int CChannelList::show()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(!edit_state && !empty && msg == CRCInput::RC_stop ) { //stop recording
|
else if(!edit_state && !empty && msg == CRCInput::RC_stop ) { //stop recording
|
||||||
//if(CRecordManager::getInstance()->RecordingStatus((*chanlist)[selected]->getChannelID()))
|
if(CRecordManager::getInstance()->RecordingStatus((*chanlist)[selected]->getChannelID())){
|
||||||
int recmode = CRecordManager::getInstance()->GetRecordMode((*chanlist)[selected]->getChannelID());
|
int recmode = CRecordManager::getInstance()->GetRecordMode((*chanlist)[selected]->getChannelID());
|
||||||
bool timeshift = recmode & CRecordManager::RECMODE_TSHIFT;
|
bool timeshift = recmode & CRecordManager::RECMODE_TSHIFT;
|
||||||
bool tsplay = CMoviePlayerGui::getInstance().timeshift;
|
bool tsplay = CMoviePlayerGui::getInstance().timeshift;
|
||||||
if (recmode && !(timeshift && tsplay))
|
if (recmode && !(timeshift && tsplay))
|
||||||
{
|
|
||||||
if (CRecordManager::getInstance()->AskToStop((*chanlist)[selected]->getChannelID()))
|
|
||||||
{
|
{
|
||||||
CRecordManager::getInstance()->Stop((*chanlist)[selected]->getChannelID());
|
if (CRecordManager::getInstance()->AskToStop((*chanlist)[selected]->getChannelID()))
|
||||||
calcSize();
|
{
|
||||||
paintBody();
|
CRecordManager::getInstance()->Stop((*chanlist)[selected]->getChannelID());
|
||||||
|
calcSize();
|
||||||
|
paintBody();
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
// stop TSHIFT: go to play mode
|
||||||
|
g_RCInput->postMsg (msg, data);
|
||||||
|
res = CHANLIST_CANCEL_ALL;
|
||||||
|
loop = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user