summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-03 10:28:08 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-03 10:28:08 +0100
commit4b5f232e59988e5c043b08210c3940a5bf82b360 (patch)
tree25b53c2a7ed255fdeeddc3eb1d4d17a8e983d039 /channels.c
parent4577bfdd9ef7edc4a76de7cef30bda960e22e576 (diff)
downloadvdr-4b5f232e59988e5c043b08210c3940a5bf82b360.tar.gz
vdr-4b5f232e59988e5c043b08210c3940a5bf82b360.tar.bz2
Avoiding setting the video stream type to 2 if the vpid is 0
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 0a9b4a2e..c14df19c 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 2.11 2010/01/01 15:38:18 kls Exp $
+ * $Id: channels.c 2.12 2010/01/02 17:38:40 kls Exp $
*/
#include "channels.h"
@@ -809,7 +809,7 @@ bool cChannel::Parse(const char *s)
tpid = 0;
}
vpid = ppid = 0;
- vtype = 2; // default is MPEG-2
+ vtype = 0;
apids[0] = 0;
dpids[0] = 0;
ok = false;
@@ -831,6 +831,8 @@ bool cChannel::Parse(const char *s)
return false;
if (!ppid)
ppid = vpid;
+ if (vpid && !vtype)
+ vtype = 2; // default is MPEG-2
char *dpidbuf = strchr(apidbuf, ';');
if (dpidbuf)