summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2003-10-17 18:00:00 +0200
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2003-10-17 18:00:00 +0200
commit162ed534b0cb1ffc481ac5a1b7eb4a2e3418aa4b (patch)
treec34450962f2b0ff9427e084d07bc742f21a54f76 /channels.c
parent59c9f24fbe2e9d78139c578dd8ce9da81ab1ca94 (diff)
downloadvdr-patch-lnbsharing-162ed534b0cb1ffc481ac5a1b7eb4a2e3418aa4b.tar.gz
vdr-patch-lnbsharing-162ed534b0cb1ffc481ac5a1b7eb4a2e3418aa4b.tar.bz2
Version 1.2.6pre1vdr-1.2.6pre1
- Updated the required driver version in INSTALL (thanks to Jens Groth for reporting this one). - Fixed missing channel info after an incomplete channel group switch (thanks to Andreas Trauer). - Fixed handling a channels.conf that contains a ":@nnn" line as its last entry (thanks to Ralf Klueber). - Fixed detecting the /dev/videoN devices for GRAB in case there are others before the DVB devices (thanks to Andreas Kool). - Updated 'channels.conf.terr' for Berlin (thanks to Markus Hardt). - Fixed handling rc key learning in case cRemote::Initialize() returns 'false' (thanks to Oliver Endriss). - Fixed initializing the highlight area in cDvbSpuDecoder (thanks to Sven Goethel). - Now trying to get a timer's channel without RID when loading 'timers.conf' (thanks to Thomas Rausch). - Removed the unused 0x73 (TOT) filter in eit.c (thanks to Andreas Trauer). - Fixed extracting the ES data in cDvbDevice::StillPicture() (thanks to Stefan Huelswitt). - Added MPEG1 handling to cDvbDevice::StillPicture() (thanks to Thomas Heiligenmann). - Changed the default "Lifetime" to 99, which means that recordings will never be deleted automatically in case the disk runs full (suggested by Oliver Endriss). Note that in an existing VDR installation the current value as set in 'setup.conf' will still be used - this change only affects new VDR installations. - Edited recordings will now never be deleted automatically if the disk runs full (suggested by Emil Naepflein). - Channel IDs are now checked when reading 'channels.conf' to avoid later problems with timers.
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/channels.c b/channels.c
index 6ff7188..69ff3c9 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 1.14 2003/09/09 18:55:26 kls Exp $
+ * $Id: channels.c 1.16 2003/10/17 15:42:40 kls Exp $
*/
#include "channels.h"
@@ -369,6 +369,10 @@ bool cChannel::Parse(const char *s, bool AllowNonUniqueID)
free(vpidbuf);
free(apidbuf);
free(namebuf);
+ if (!GetChannelID().Valid()) {
+ esyslog("ERROR: channel data results in invalid ID!");
+ return false;
+ }
if (!AllowNonUniqueID && Channels.GetByChannelID(GetChannelID())) {
esyslog("ERROR: channel data not unique!");
return false;
@@ -431,10 +435,11 @@ void cChannels::ReNumber( void )
if (channel->Number() > Number)
Number = channel->Number();
}
- else
+ else {
+ maxNumber = Number;
channel->SetNumber(Number++);
+ }
}
- maxNumber = Number - 1;
}
cChannel *cChannels::GetByNumber(int Number, int SkipGap)