1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed handling group separator at beginning of 'channels.conf'

This commit is contained in:
Klaus Schmidinger 2001-07-22 15:17:51 +02:00
parent 37ed2c31e7
commit 9323eea670
2 changed files with 5 additions and 3 deletions

View File

@ -567,3 +567,5 @@ Video Disk Recorder Revision History
available). available).
- Increased the buffer for key names received from LIRC (thanks to Andre - Increased the buffer for key names received from LIRC (thanks to Andre
Valentin). Valentin).
- Fixed handling a channel group separator at the very beginning of the
'channels.conf' file.

6
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.79 2001/07/22 13:46:07 kls Exp $ * $Id: menu.c 1.80 2001/07/22 15:16:58 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -1829,11 +1829,11 @@ cDisplayChannel::~cDisplayChannel()
void cDisplayChannel::DisplayChannel(const cChannel *Channel) void cDisplayChannel::DisplayChannel(const cChannel *Channel)
{ {
if (Channel && Channel->number) if (Channel && Channel->number > 0)
Interface->DisplayChannelNumber(Channel->number); Interface->DisplayChannelNumber(Channel->number);
int BufSize = Width() + 1; int BufSize = Width() + 1;
char buffer[BufSize]; char buffer[BufSize];
if (Channel && Channel->number) if (Channel && Channel->number > 0)
snprintf(buffer, BufSize, "%d%s %s", Channel->number, number ? "-" : "", Channel->name); snprintf(buffer, BufSize, "%d%s %s", Channel->number, number ? "-" : "", Channel->name);
else else
snprintf(buffer, BufSize, "%s", Channel ? Channel->name : tr("*** Invalid Channel ***")); snprintf(buffer, BufSize, "%s", Channel ? Channel->name : tr("*** Invalid Channel ***"));