diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-23 13:19:10 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-23 13:19:10 +0100 |
commit | edfe5829417bea8879bd2e45892b4465ea69b6eb (patch) | |
tree | fc4b20198c794682d0197e2e8b065d48198fd319 /vdr.c | |
parent | 1b1267674f2b1d632097e60f1284f6ba97b10e00 (diff) | |
download | vdr-edfe5829417bea8879bd2e45892b4465ea69b6eb.tar.gz vdr-edfe5829417bea8879bd2e45892b4465ea69b6eb.tar.bz2 |
Attempting to stay on the current channel in case of an upcoming recording
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.310 2008/02/10 14:23:31 kls Exp $ + * $Id: vdr.c 1.311 2008/02/23 13:19:10 kls Exp $ */ #include <getopt.h> @@ -877,7 +877,9 @@ int main(int argc, char *argv[]) } if (cDevice::PrimaryDevice()->HasDecoder() && !cDevice::PrimaryDevice()->HasProgramme()) { // the previous SwitchChannel() has switched away the current live channel - Channels.SwitchTo(Timer->Channel()->Number()); // avoids toggling between old channel and black screen + cDevice::SetAvoidDevice(Device); + if (!Channels.SwitchTo(cDevice::CurrentChannel())) // try to switch to the original channel on a different device... + Channels.SwitchTo(Timer->Channel()->Number()); // ...or avoid toggling between old channel and black screen Skins.Message(mtInfo, tr("Upcoming recording!")); } } |