summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-03-28 21:56:56 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-03-28 21:56:56 +0100
commit1b02cc9c9416f298be05f79e83abb7e4b0a1f164 (patch)
treef413cefa194ff5de209d04fe3e790e6133d7c076 /dvbplayer.c
parentb3931e646fd42f48c0ccb58d8d1f7a9d4eec1bb7 (diff)
downloadvdr-1b02cc9c9416f298be05f79e83abb7e4b0a1f164.tar.gz
vdr-1b02cc9c9416f298be05f79e83abb7e4b0a1f164.tar.bz2
Using the result of DeviceFlush() when hitting end of recording
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dvbplayer.c b/dvbplayer.c
index b86a4bcb..63c18d45 100644
--- a/dvbplayer.c
+++ b/dvbplayer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.c 2.5 2009/03/28 17:13:23 kls Exp $
+ * $Id: dvbplayer.c 2.6 2009/03/28 21:56:56 kls Exp $
*/
#include "dvbplayer.h"
@@ -555,8 +555,11 @@ void cDvbPlayer::Action(void)
// Handle hitting begin/end of recording:
if (HitBegin || HitEnd) {
- if (DeviceFlush(10)) // give device a chance to display the last frame
+ if (DeviceFlush(10)) { // give device a chance to display the last frame
cCondWait::SleepMs(10); // don't get into a tight loop
+ }
+ else
+ HitBegin = HitEnd = false;
}
if (HitBegin) {
if (ptsIndex.FindIndex(DeviceGetSTC()) <= 0) {