reelchannelscan-0.3.0 with complete empty channels.conf before
Commit Message
Hi!
With this patch applied reelchannelscan will no longer crash if the
channels.conf file was completely empty before scanning.
Btw. why I am able to start vdr with a completely empty channels.conf, but not
when the file is missing. I thinks this should be changed, vdr should create
the file if necessary.
Matthias
Comments
Matthias Schwarzott wrote:
> With this patch applied reelchannelscan will no longer crash if the
> channels.conf file was completely empty before scanning.
What on earth is 'reelchannelscan' ?
On Tuesday 30 May 2006 15:57, Lauri Tischler wrote:
> Matthias Schwarzott wrote:
> > With this patch applied reelchannelscan will no longer crash if the
> > channels.conf file was completely empty before scanning.
>
> What on earth is 'reelchannelscan' ?
>
This is a fork of the channelscan-plugin from reelmultimedia.
http://www.reel-multimedia.com/
Wiki page in german:
http://www.vdr-wiki.de/wiki/index.php/Reelchannelscan-plugin
Alternative download: http://deela.cc.fh-lippe.de/files/vdr-reelchannelscan/
Matthias
@@ -100,7 +100,11 @@
// CurrentChannel has to be greater than 0!
CurrentChannelNr = CurrentChannelNr == 0 ? 1 : CurrentChannelNr;
cChannel *channel = Channels.GetByNumber(CurrentChannelNr);
- source = channel->Source();
+ if (channel) {
+ source = channel->Source();
+ } else {
+ source = cSource::FromString("S19.2E");
+ }
currentChannel = CurrentChannelNr;
scanActiveMenu = false;
// timer for loop mode