]> git.vomp.tv Git - vompclient.git/commitdiff
Fix for channels without audio
authorChris Tallon <chris@vomp.tv>
Sun, 30 Mar 2008 15:08:13 +0000 (15:08 +0000)
committerChris Tallon <chris@vomp.tv>
Sun, 30 Mar 2008 15:08:13 +0000 (15:08 +0000)
playerlivetv.cc

index eb66e3cbb32e3968b5a0c48da825067628f7b1a9..9584a336d0eb7bb8dae052386104d50074082f3d 100644 (file)
@@ -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)
       {