summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-03-08 10:04:16 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-03-08 10:04:16 +0100
commit120fb54d495f3770dad3ea7d98b7abaacfc6bb0e (patch)
tree99ded6ea62ec841b15291bcac77c35ee2ad40f47 /vdr.c
parent9b68c100b2d221224382fe139599828f3ea663b7 (diff)
downloadvdr-120fb54d495f3770dad3ea7d98b7abaacfc6bb0e.tar.gz
vdr-120fb54d495f3770dad3ea7d98b7abaacfc6bb0e.tar.bz2
Fixed checking pids in case a channel has only Dolby Digital audio
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 9715d885..b19730b0 100644
--- a/vdr.c
+++ b/vdr.c
@@ -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) {