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

Fixed starting a new replay immediately after stopping a previous one

This commit is contained in:
Klaus Schmidinger 2001-09-16 10:11:32 +02:00
parent e7ef8190c2
commit 987a0e931c
2 changed files with 6 additions and 2 deletions

View File

@ -753,3 +753,5 @@ Video Disk Recorder Revision History
- Better error handling when writing configuration files.
- Fixed putting the final editing mark into the edited version's marks file.
- Fixed manipulating an editing mark at the very end of a recording.
- Fixed starting a new replay immediately after stopping a previous one (had
caused a mix between live video and replay).

View File

@ -7,7 +7,7 @@
* DVD support initially written by Andreas Schultz <aschultz@warp10.net>
* based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
*
* $Id: dvbapi.c 1.123 2001/09/16 09:52:57 kls Exp $
* $Id: dvbapi.c 1.124 2001/09/16 10:10:28 kls Exp $
*/
//#define DVDDEBUG 1
@ -3531,8 +3531,10 @@ void cDvbApi::StopReplay(void)
if (this == PrimaryDvbApi) {
// let's explicitly switch the channel back in case it was in Transfer Mode:
cChannel *Channel = Channels.GetByNumber(currentChannel);
if (Channel)
if (Channel) {
Channel->Switch(this, false);
usleep(100000); // allow driver to sync in case a new replay will start immediately
}
}
}
}