No longer writing the video type into channels.conf if VPID is 0

This commit is contained in:
Klaus Schmidinger 2009-04-10 11:34:33 +02:00
parent ee97c6abee
commit af89f39e82
3 changed files with 6 additions and 2 deletions

View File

@ -667,6 +667,8 @@ Oliver Endriss <o.endriss@gmx.de>
for pointing out a problem with the decimal point of the F record in the info file of
a recording
for adding missing AUDIO_PAUSE/AUDIO_CONTINUE calls to cDvbDevice
for reporting that the video type is unnecessarily written into channels.conf if
VPID is 0
Reinhard Walter Buchner <rw.buchner@freenet.de>
for adding some satellites to 'sources.conf'

View File

@ -6027,3 +6027,5 @@ Video Disk Recorder Revision History
- Fixed detecting the frame rate for radio recordings.
- Added missing AUDIO_PAUSE/AUDIO_CONTINUE calls to cDvbDevice (thanks to Oliver
Endriss).
- No longer writing the video type into channels.conf if VPID is 0 (thanks to
Oliver Endriss for reporting this).

View File

@ -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