mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
zapit: improve the lockPlayBack "nonblank-Hack"
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9476627ac5
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-12 (Sun, 12 Jan 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -195,7 +195,7 @@ class CZapit : public OpenThreads::Thread
|
||||
void LoadVolumeMap();
|
||||
void SaveChannelPids(CZapitChannel* channel);
|
||||
virtual void ConfigFrontend();
|
||||
bool StopPlayBack(bool send_pmt);
|
||||
bool StopPlayBack(bool send_pmt, bool blank = true);
|
||||
virtual void leaveStandby();
|
||||
|
||||
static CZapit * zapit;
|
||||
|
@@ -1693,10 +1693,7 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
|
||||
{
|
||||
CZapitMessages::commandBoolean msgBool;
|
||||
CBasicServer::receive_data(connfd, &msgBool, sizeof(msgBool));
|
||||
/* hack. if standby true, dont blank video */
|
||||
standby = true;
|
||||
StopPlayBack(msgBool.truefalse);
|
||||
standby = false;
|
||||
StopPlayBack(msgBool.truefalse, false);
|
||||
playbackStopForced = true;
|
||||
lock_channel_id = live_channel_id;
|
||||
SendCmdReady(connfd);
|
||||
@@ -2205,7 +2202,7 @@ bool CZapit::StartPlayBack(CZapitChannel *thisChannel)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CZapit::StopPlayBack(bool send_pmt)
|
||||
bool CZapit::StopPlayBack(bool send_pmt, bool blank)
|
||||
{
|
||||
if(send_pmt)
|
||||
CCamManager::getInstance()->Stop(live_channel_id, CCamManager::PLAY);
|
||||
@@ -2234,7 +2231,7 @@ bool CZapit::StopPlayBack(bool send_pmt)
|
||||
audioDecoder->Stop();
|
||||
|
||||
/* hack. if standby, dont blank video -> for paused timeshift */
|
||||
videoDecoder->Stop(standby ? false : true);
|
||||
videoDecoder->Stop(standby ? false : blank);
|
||||
#endif
|
||||
#ifdef USE_VBI
|
||||
videoDecoder->StopVBI();
|
||||
|
Reference in New Issue
Block a user