Dont set demux source on box with single tuner

This commit is contained in:
[CST] Focus
2013-04-17 10:17:33 +04:00
parent da646d5d15
commit ccfba0e0e8
2 changed files with 4 additions and 2 deletions

View File

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

View File

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