diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-02-08 12:22:24 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-02-08 12:22:24 +0100 |
commit | 1a91d46cf3b28d8bc07c0423b41532985f8561b2 (patch) | |
tree | 2c955194dc196caaf2aeabd58df3c5438bbb73f0 /channels.h | |
parent | acc25ade19f8bb40e9ead2d61d9488a2cf4805af (diff) | |
download | vdr-1a91d46cf3b28d8bc07c0423b41532985f8561b2.tar.gz vdr-1a91d46cf3b28d8bc07c0423b41532985f8561b2.tar.bz2 |
Fixed the validity check for channel IDs, because some providers use TIDs with value 0
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.h 1.14 2004/02/07 22:04:26 kls Exp $ + * $Id: channels.h 1.15 2004/02/08 12:20:22 kls Exp $ */ #ifndef __CHANNELS_H @@ -59,7 +59,7 @@ public: tChannelID(void) { source = nid = tid = sid = rid = 0; } tChannelID(int Source, int Nid, int Tid, int Sid, int Rid = 0) { source = Source; nid = Nid; tid = Tid; sid = Sid; rid = Rid; } bool operator== (const tChannelID &arg) const; - bool Valid(void) { return tid && sid; } // nid and rid are optional and source may be 0//XXX source may not be 0??? + bool Valid(void) { return (nid || tid) && sid; } // rid is optional and source may be 0//XXX source may not be 0??? tChannelID &ClrRid(void) { rid = 0; return *this; } static tChannelID FromString(const char *s); const char *ToString(void); |