1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Changed calculation of channel ids to make it work for tv stations that use the undefined NID value 0

This commit is contained in:
Klaus Schmidinger 2004-01-05 12:55:07 +01:00
parent 0901afcf6d
commit 3f5c7e67ea
3 changed files with 6 additions and 2 deletions

View File

@ -637,6 +637,8 @@ Teemu Rantanen <tvr@iki.fi>
for adding TS error checking to remux.c for adding TS error checking to remux.c
for pinpointing a problem with excessive memmove() calls in 'Transfer Mode' for pinpointing a problem with excessive memmove() calls in 'Transfer Mode'
for fixing faulty calculation of section length in eit.c for fixing faulty calculation of section length in eit.c
for reporting a problem in calculation of channel ids for tv stations that use
the undefined NID value 0
Jan Ekholm <chakie@infa.abo.fi> Jan Ekholm <chakie@infa.abo.fi>
for adding/improving some Swedish language OSD texts for adding/improving some Swedish language OSD texts

View File

@ -2552,3 +2552,5 @@ Video Disk Recorder Revision History
now been adopted. now been adopted.
- Fixed a crash in case there is no DVB hardware present (thanks to Sascha - Fixed a crash in case there is no DVB hardware present (thanks to Sascha
Volkenandt for reporting this one). Volkenandt for reporting this one).
- Changed calculation of channel ids to make it work for tv stations that use
the undefined NID value 0 (thanks to Teemu Rantanen for reporting this one).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "channels.h"
@ -227,7 +227,7 @@ int cChannel::Transponder(void) const
tChannelID cChannel::GetChannelID(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) int cChannel::Modification(int Mask)