diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-11-29 14:19:08 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-11-29 14:19:08 +0100 |
commit | 88db59f61ac47bced386f1c991aa21e0592fdb13 (patch) | |
tree | d2f7859ce0b60f16bc4896d04d603e9f35b54842 /channels.c | |
parent | 4ab777e98a2d2f0f5c29d63609e28faafe1cde7e (diff) | |
download | vdr-88db59f61ac47bced386f1c991aa21e0592fdb13.tar.gz vdr-88db59f61ac47bced386f1c991aa21e0592fdb13.tar.bz2 |
No longer displaying channel group delimiters without text
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 6 |
1 files changed, 3 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.10 2002/11/24 20:09:42 kls Exp $ + * $Id: channels.c 1.11 2002/11/29 14:10:46 kls Exp $ */ #include "channels.h" @@ -386,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; } @@ -394,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; } |