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

Using the result of DeviceFlush() when hitting end of recording

This commit is contained in:
Klaus Schmidinger 2009-03-28 21:56:56 +01:00
parent b3931e646f
commit 1b02cc9c94

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: 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" #include "dvbplayer.h"
@ -555,8 +555,11 @@ void cDvbPlayer::Action(void)
// Handle hitting begin/end of recording: // Handle hitting begin/end of recording:
if (HitBegin || HitEnd) { 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 cCondWait::SleepMs(10); // don't get into a tight loop
}
else
HitBegin = HitEnd = false;
} }
if (HitBegin) { if (HitBegin) {
if (ptsIndex.FindIndex(DeviceGetSTC()) <= 0) { if (ptsIndex.FindIndex(DeviceGetSTC()) <= 0) {