diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-05 12:55:07 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-05 12:55:07 +0100 |
commit | 3f5c7e67eac370bfbc37b13779ebd7d9da3c2061 (patch) | |
tree | 4511d9653a6ffad3f0ac80a1feb095a6d4e9a040 /channels.c | |
parent | 0901afcf6d0714b65a79ea55a94604fe51c5503f (diff) | |
download | vdr-3f5c7e67eac370bfbc37b13779ebd7d9da3c2061.tar.gz vdr-3f5c7e67eac370bfbc37b13779ebd7d9da3c2061.tar.bz2 |
Changed calculation of channel ids to make it work for tv stations that use the undefined NID value 0
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 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.c 1.17 2004/01/04 12:28:49 kls Exp $ + * $Id: channels.c 1.18 2004/01/05 12:50:34 kls Exp $ */ #include "channels.h" @@ -227,7 +227,7 @@ int cChannel::Transponder(void) const tChannelID cChannel::GetChannelID(void) const { - return tChannelID(source, nid, nid ? tid : Transponder(), sid, rid); + return tChannelID(source, nid, (nid || tid) ? tid : Transponder(), sid, rid); } int cChannel::Modification(int Mask) |