summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-29 10:34:10 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-29 10:34:10 +0200
commit2c93950b8f719447759242d785d871ede6ed9ada (patch)
tree1bbad3c80c71b53b44860c7749a6980913265910 /dvbapi.c
parent9639cfdd46da3ff3fa6694967d95976bcff83815 (diff)
downloadvdr-2c93950b8f719447759242d785d871ede6ed9ada.tar.gz
vdr-2c93950b8f719447759242d785d871ede6ed9ada.tar.bz2
Explicitly switching back to the previously active channel after ending a replay session0.8.5
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 224888ec..07b6f61b 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.95 2001/07/29 09:49:33 kls Exp $
+ * $Id: dvbapi.c 1.96 2001/07/29 10:32:50 kls Exp $
*/
#include "dvbapi.h"
@@ -2416,6 +2416,12 @@ void cDvbApi::StopReplay(void)
if (replayBuffer) {
delete replayBuffer;
replayBuffer = NULL;
+ if (this == PrimaryDvbApi) {
+ // let's explicitly switch the channel back in case it was in Transfer Mode:
+ cChannel *Channel = Channels.GetByNumber(currentChannel);
+ if (Channel)
+ Channel->Switch(this, false);
+ }
}
}