From 8e05dc552585ed85279bae65a14f1f3ea14053b8 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 30 Mar 2008 15:08:13 +0000 Subject: [PATCH] Fix for channels without audio --- playerlivetv.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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) { -- 2.39.2