Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: selfswitching...
Wolfgang Rohdewald wrote:
>
> Please have a look at this log. 1.3.4 with elchi patch on 2.6.3
>
> Channel 65 stays silent after starting the record,
> channels 64 and 66 on the same frequency work.
>
> Of course I did not choose 65 hundreds of times, vdr did.
>
> Feb 27 10:29:31 mm vdr[28268]: switching to channel 65
> Feb 27 10:29:49 mm vdr[28268]: timer 5 (65 1029-1329 '@TITLE EPISODE') start
> Feb 27 10:29:53 mm vdr[28268]: record /video/@Swiss_Pop__/2004-02-27.10:29.50.99.rec
> Feb 27 10:30:15 mm vdr[28268]: switching to channel 2
> Feb 27 10:30:24 mm vdr[28268]: switching to channel 65
> Feb 27 10:30:25 mm last message repeated 30 times
> Feb 27 10:30:25 mm vdr[28268]: switching to channel 5
> Feb 27 10:30:30 mm vdr[28268]: switching to channel 65
> Feb 27 10:30:32 mm last message repeated 25 times
> Feb 27 10:30:32 mm vdr[28268]: switching to channel 5
> Feb 27 10:30:32 mm vdr[28268]: switching to channel 65
> Feb 27 10:30:46 mm last message repeated 185 times
> Feb 27 10:30:46 mm vdr[28268]: switching to channel 66
> Feb 27 10:30:47 mm vdr[28268]: switching to channel 65
> Feb 27 10:30:55 mm last message repeated 189 times
> Feb 27 10:30:56 mm vdr[28268]: confirm: Aufzeichnung l<F6>schen?
> Feb 27 10:30:57 mm vdr[28268]: confirmed
> Feb 27 10:30:57 mm vdr[28268]: confirm: Timer zeichnet auf - trotzdem l<F6>schen?
> Feb 27 10:30:57 mm vdr[28268]: confirmed
> Feb 27 10:30:57 mm vdr[28268]: timer 5 (65 1029-1329 '@Swiss Pop ') stop
> Feb 27 10:30:57 mm vdr[28268]: timer 5 deleted
> Feb 27 10:30:57 mm vdr[28268]: deleting recording /video/@Swiss_Pop__/2004-02-27.10:29.50.99.rec
> Feb 27 10:30:57 mm vdr[28268]: switching to channel 65
> Feb 27 10:31:04 mm last message repeated 6 times
> Feb 27 10:31:04 mm vdr[28268]: confirm: Aufzeichnung beenden?
> Feb 27 10:31:06 mm vdr[28268]: confirmed
> Feb 27 10:31:06 mm vdr[28268]: switching to channel 65
> Feb 27 10:31:11 mm last message repeated 75 times
> Feb 27 10:31:11 mm vdr[28268]: switching to channel 64
This will be fixed in version 1.3.5.
Here's a patch:
--- vdr.c 2004/02/08 11:23:29 1.175
+++ vdr.c 2004/02/13 13:13:13 1.176
@@ -496,11 +496,15 @@
if (!EITScanner.Active() && cDevice::PrimaryDevice()->HasDecoder() && !cDevice::PrimaryDevice()->HasProgramme()) {
static time_t lastTime = 0;
if (time(NULL) - lastTime > MINCHANNELWAIT) {
- if (!Channels.SwitchTo(cDevice::CurrentChannel()) // try to switch to the original channel...
- && !(LastTimerChannel > 0 && Channels.SwitchTo(LastTimerChannel)) // ...or the one used by the last timer...
- && !cDevice::SwitchChannel(1) // ...or the next higher available one...
- && !cDevice::SwitchChannel(-1)) // ...or the next lower available one
- lastTime = time(NULL); // don't do this too often
+ cChannel *Channel = Channels.GetByNumber(cDevice::CurrentChannel());
+ if (Channel && (Channel->Vpid() || Channel->Apid1())) {
+ if (!Channels.SwitchTo(cDevice::CurrentChannel()) // try to switch to the original channel...
+ && !(LastTimerChannel > 0 && Channels.SwitchTo(LastTimerChannel)) // ...or the one used by the last timer...
+ && !cDevice::SwitchChannel(1) // ...or the next higher available one...
+ && !cDevice::SwitchChannel(-1)) // ...or the next lower available one
+ ;
+ }
+ lastTime = time(NULL); // don't do this too often
LastTimerChannel = -1;
}
}
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index