diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-10 11:34:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-10 11:34:33 +0200 |
commit | af89f39e82106cae52bdc55c13ffbd21705f448b (patch) | |
tree | 78e9c946bce585211072ec2f7c4b49a8001fb096 /channels.c | |
parent | ee97c6abee411dc269e54cf322586bc888c24c8d (diff) | |
download | vdr-af89f39e82106cae52bdc55c13ffbd21705f448b.tar.gz vdr-af89f39e82106cae52bdc55c13ffbd21705f448b.tar.bz2 |
No longer writing the video type into channels.conf if VPID is 0
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 2.4 2008/12/13 11:42:15 kls Exp $ + * $Id: channels.c 2.5 2009/04/10 11:29:55 kls Exp $ */ #include "channels.h" @@ -724,7 +724,7 @@ cString cChannel::ToText(const cChannel *Channel) q += snprintf(q, sizeof(vpidbuf), "%d", Channel->vpid); if (Channel->ppid && Channel->ppid != Channel->vpid) q += snprintf(q, sizeof(vpidbuf) - (q - vpidbuf), "+%d", Channel->ppid); - if (Channel->vtype) + if (Channel->vpid && Channel->vtype) q += snprintf(q, sizeof(vpidbuf) - (q - vpidbuf), "=%d", Channel->vtype); *q = 0; const int BufferSize = (MAXAPIDS + MAXDPIDS) * (5 + 1 + MAXLANGCODE2) + 10; // 5 digits plus delimiting ',' or ';' plus optional '=cod+cod', +10: paranoia |