diff options
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.9 2002/11/24 14:28:48 kls Exp $ + * $Id: channels.c 1.11 2002/11/29 14:10:46 kls Exp $ */ #include "channels.h" @@ -174,6 +174,7 @@ cChannel::cChannel(void) tid = 0; sid = 888; rid = 0; + number = 0; groupSep = false; polarization = 'v'; inversion = INVERSION_AUTO; @@ -385,7 +386,7 @@ bool cChannels::Load(const char *FileName, bool AllowComments) int cChannels::GetNextGroup(int Idx) { cChannel *channel = Get(++Idx); - while (channel && !channel->GroupSep()) + while (channel && !(channel->GroupSep() && *channel->Name())) channel = Get(++Idx); return channel ? Idx : -1; } @@ -393,7 +394,7 @@ int cChannels::GetNextGroup(int Idx) int cChannels::GetPrevGroup(int Idx) { cChannel *channel = Get(--Idx); - while (channel && !channel->GroupSep()) + while (channel && !(channel->GroupSep() && *channel->Name())) channel = Get(--Idx); return channel ? Idx : -1; } |