diff --git a/src/zapit/src/femanager.cpp b/src/zapit/src/femanager.cpp index fd74bc3e4..d152438c6 100644 --- a/src/zapit/src/femanager.cpp +++ b/src/zapit/src/femanager.cpp @@ -640,7 +640,8 @@ CFrontend * CFEManager::allocateFE(CZapitChannel * channel, bool forrecord) #else channel->setRecordDemux(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 /* FIXME until proper demux management */ if (enabled_count < 4) { diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index fdc7302fc..e613cac85 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -627,7 +627,8 @@ bool CZapit::StartPip(const t_channel_id channel_id) pipDemux->Open(DMX_PIP_CHANNEL); pipDecoder->SetDemux(pipDemux); } - cDemux::SetSource(dnum, pip_fe->getNumber()); + if (CFEManager::getInstance()->getFrontendCount() > 1) + cDemux::SetSource(dnum, pip_fe->getNumber()); #if 0 pipDecoder->SetSyncMode(AVSYNC_DISABLED); pipDemux->SetSyncMode(AVSYNC_DISABLED);