summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-16 10:11:32 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-16 10:11:32 +0200
commit987a0e931cbd488be35fcf4d8979ea9cf7d17b63 (patch)
tree876f786a93b74c554bab0de4824fe1c4d2c7e0cb /dvbapi.c
parente7ef8190c26e697bd4aae89aee96cf572e48a658 (diff)
downloadvdr-987a0e931cbd488be35fcf4d8979ea9cf7d17b63.tar.gz
vdr-987a0e931cbd488be35fcf4d8979ea9cf7d17b63.tar.bz2
Fixed starting a new replay immediately after stopping a previous one
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 65e4aeb2..462e1954 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -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
+ }
}
}
}