diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-10-03 15:16:08 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-10-03 15:16:08 +0200 |
commit | 944ffee0a18e1a33770ef35f12bbe0e77850476c (patch) | |
tree | 127b91a2c76a356c50a5e865d9ae49a5eab8e5cc /channels.c | |
parent | 4eecc59ef8142fa35cc69b96f55df8e4d6f73225 (diff) | |
download | vdr-944ffee0a18e1a33770ef35f12bbe0e77850476c.tar.gz vdr-944ffee0a18e1a33770ef35f12bbe0e77850476c.tar.bz2 |
Fixed handling a channels.conf that contains a ":@nnn" line as its last entry
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 1.14 2003/09/09 18:55:26 kls Exp $ + * $Id: channels.c 1.15 2003/10/03 15:12:59 kls Exp $ */ #include "channels.h" @@ -431,10 +431,11 @@ void cChannels::ReNumber( void ) if (channel->Number() > Number) Number = channel->Number(); } - else + else { + maxNumber = Number; channel->SetNumber(Number++); + } } - maxNumber = Number - 1; } cChannel *cChannels::GetByNumber(int Number, int SkipGap) |