From: Chris Tallon Date: Sun, 30 Mar 2008 15:08:13 +0000 (+0000) Subject: Fix for channels without audio X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=8e05dc552585ed85279bae65a14f1f3ea14053b8;p=vompclient-marten.git Fix for channels without audio --- diff --git a/playerlivetv.cc b/playerlivetv.cc index eb66e3c..9584a33 100644 --- a/playerlivetv.cc +++ b/playerlivetv.cc @@ -526,10 +526,17 @@ void PlayerLiveTV::threadMethod() 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) {