Dont set demux source on box with single tuner

Origin commit data
------------------
Branch: ni/coolstream
Commit: ccfba0e0e8
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-04-17 (Wed, 17 Apr 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-04-17 10:17:33 +04:00
parent 412cfde71f
commit f3c0d468bd
2 changed files with 4 additions and 2 deletions

View File

@@ -640,7 +640,8 @@ CFrontend * CFEManager::allocateFE(CZapitChannel * channel, bool forrecord)
#else #else
channel->setRecordDemux(frontend->fenumber+1); channel->setRecordDemux(frontend->fenumber+1);
channel->setPipDemux(frontend->fenumber+1); channel->setPipDemux(frontend->fenumber+1);
cDemux::SetSource(frontend->fenumber+1, frontend->fenumber); if(femap.size() > 1)
cDemux::SetSource(frontend->fenumber+1, frontend->fenumber);
#ifdef ENABLE_PIP #ifdef ENABLE_PIP
/* FIXME until proper demux management */ /* FIXME until proper demux management */
if (enabled_count < 4) { if (enabled_count < 4) {

View File

@@ -627,7 +627,8 @@ bool CZapit::StartPip(const t_channel_id channel_id)
pipDemux->Open(DMX_PIP_CHANNEL); pipDemux->Open(DMX_PIP_CHANNEL);
pipDecoder->SetDemux(pipDemux); pipDecoder->SetDemux(pipDemux);
} }
cDemux::SetSource(dnum, pip_fe->getNumber()); if (CFEManager::getInstance()->getFrontendCount() > 1)
cDemux::SetSource(dnum, pip_fe->getNumber());
#if 0 #if 0
pipDecoder->SetSyncMode(AVSYNC_DISABLED); pipDecoder->SetSyncMode(AVSYNC_DISABLED);
pipDemux->SetSyncMode(AVSYNC_DISABLED); pipDemux->SetSyncMode(AVSYNC_DISABLED);