fix logic

This commit is contained in:
TangoCash
2021-03-13 11:01:24 +01:00
committed by Thilo Graf
parent 85a1b94e55
commit 4095c0b1b8

View File

@@ -718,15 +718,17 @@ bool CZapit::StartPip(const t_channel_id channel_id)
pip_fe = frontend; pip_fe = frontend;
#ifdef DYNAMIC_DEMUX
int dnum = CFEManager::getInstance()->getDemux(newchannel->getTransponderId(), pip_fe->getNumber());
INFO("[pip] dyn demux: %d", dnum);
#else
/* FIXME until proper demux management */
int dnum = 1;
INFO("[pip] demux: %d", dnum);
#endif
INFO("[pip] vpid %X apid %X pcr %X", newchannel->getVideoPid(), newchannel->getAudioPid(), newchannel->getPcrPid()); INFO("[pip] vpid %X apid %X pcr %X", newchannel->getVideoPid(), newchannel->getAudioPid(), newchannel->getPcrPid());
if (!pipDemux) { if (!pipDemux) {
#ifdef DYNAMIC_DEMUX
int dnum = CFEManager::getInstance()->getDemux(newchannel->getTransponderId(), pip_fe->getNumber());
INFO("[pip] dyn demux: %d", dnum);
#else
/* FIXME until proper demux management */
int dnum = 1;
#endif
pipDemux = new cDemux(dnum); pipDemux = new cDemux(dnum);
pipDemux->Open(DMX_PIP_CHANNEL); pipDemux->Open(DMX_PIP_CHANNEL);
if (!pipDecoder) { if (!pipDecoder) {