Channel* chan = (*chanList)[i.channelIndex];
chan->loadPids();
demuxer->setVID(chan->vpid);
- demuxer->setAID(chan->apids[0].pid);
- logger->log("PlayerLiveTV", Log::DEBUG, "Demuxer pids: %u %u", chan->vpid, chan->apids[0].pid);
+ if (chan->numAPids > 0)
+ {
+ demuxer->setAID(chan->apids[0].pid);
+ logger->log("PlayerLiveTV", Log::DEBUG, "Demuxer pids: %u %u", chan->vpid, chan->apids[0].pid);
+ }
+ else
+ {
+ logger->log("PlayerLiveTV", Log::WARN, "Demuxer video pid only: %u", chan->vpid);
+ }
+
vdr->streamChannel(chan->number, this);
-
}
else if (i.instruction == I_STOP)
{