diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-08 10:04:16 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-08 10:04:16 +0100 |
commit | 120fb54d495f3770dad3ea7d98b7abaacfc6bb0e (patch) | |
tree | 99ded6ea62ec841b15291bcac77c35ee2ad40f47 | |
parent | 9b68c100b2d221224382fe139599828f3ea663b7 (diff) | |
download | vdr-120fb54d495f3770dad3ea7d98b7abaacfc6bb0e.tar.gz vdr-120fb54d495f3770dad3ea7d98b7abaacfc6bb0e.tar.bz2 |
Fixed checking pids in case a channel has only Dolby Digital audio
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | dvbdevice.c | 4 | ||||
-rw-r--r-- | vdr.c | 4 |
3 files changed, 6 insertions, 5 deletions
@@ -6960,7 +6960,7 @@ Video Disk Recorder Revision History which was made in version 1.1.10, so please report if this has any unwanted side effects. -2012-03-07: Version 1.7.26 +2012-03-08: Version 1.7.26 - Now checking for NULL in cOsd::AddPixmap() (suggested by Christoph Haubrich). - Fixed the German translation of "VDR will shut down in %s minutes" (thanks to @@ -6993,3 +6993,4 @@ Video Disk Recorder Revision History broadcast Dolby Digital audio there were sometimes log entries like "changing pids of channel ... from ... to ..." with no apparent difference between the old and new set of pids. +- Fixed checking pids in case a channel has only Dolby Digital audio. diff --git a/dvbdevice.c b/dvbdevice.c index ce45ba51..4c9268f4 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 2.66 2012/03/07 13:37:01 kls Exp $ + * $Id: dvbdevice.c 2.67 2012/03/08 09:49:58 kls Exp $ */ #include "dvbdevice.h" @@ -1446,7 +1446,7 @@ bool cDvbDevice::ProvidesChannel(const cChannel *Channel, int Priority, bool *Ne if (Priority >= 0) { if (Receiving()) { if (dvbTuner->IsTunedTo(Channel)) { - if (Channel->Vpid() && !HasPid(Channel->Vpid()) || Channel->Apid(0) && !HasPid(Channel->Apid(0))) { + if (Channel->Vpid() && !HasPid(Channel->Vpid()) || Channel->Apid(0) && !HasPid(Channel->Apid(0)) || Channel->Dpid(0) && !HasPid(Channel->Dpid(0))) { if (CamSlot() && Channel->Ca() >= CA_ENCRYPTED_MIN) { if (CamSlot()->CanDecrypt(Channel)) result = true; @@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 2.32 2012/03/06 12:14:17 kls Exp $ + * $Id: vdr.c 2.33 2012/03/08 09:51:52 kls Exp $ */ #include <getopt.h> @@ -761,7 +761,7 @@ int main(int argc, char *argv[]) static time_t lastTime = 0; if ((!Menu || CheckHasProgramme) && Now - lastTime > MINCHANNELWAIT) { // !Menu to avoid interfering with the CAM if a CAM menu is open cChannel *Channel = Channels.GetByNumber(cDevice::CurrentChannel()); - if (Channel && (Channel->Vpid() || Channel->Apid(0))) { + if (Channel && (Channel->Vpid() || Channel->Apid(0) || Channel->Dpid(0))) { if (cDevice::GetDeviceForTransponder(Channel, LIVEPRIORITY) && Channels.SwitchTo(Channel->Number())) // try to switch to the original channel... ; else if (LastTimerChannel > 0) { |