1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Explicitly switching back to the previously active channel after ending a replay session

This commit is contained in:
Klaus Schmidinger 2001-07-29 10:34:10 +02:00
parent 9639cfdd46
commit 2c93950b8f
2 changed files with 9 additions and 1 deletions

View File

@ -607,3 +607,5 @@ Video Disk Recorder Revision History
Apparently the driver gets irritated when the channel is switched and a Apparently the driver gets irritated when the channel is switched and a
replay session is started immediately after that. replay session is started immediately after that.
- Increased timeout until reporting "video data stream broken" when recording. - Increased timeout until reporting "video data stream broken" when recording.
- Explicitly switching back to the previously active channel after ending a
replay session (to have it shown correctly in case it was in 'Transfer Mode').

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "dvbapi.h"
@ -2416,6 +2416,12 @@ void cDvbApi::StopReplay(void)
if (replayBuffer) { if (replayBuffer) {
delete replayBuffer; delete replayBuffer;
replayBuffer = NULL; 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);
}
} }
} }