summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video.c')
-rw-r--r--video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video.c b/video.c
index 6e62d5c..bf946e0 100644
--- a/video.c
+++ b/video.c
@@ -3471,7 +3471,8 @@ static void VaapiAdvanceFrame(void)
}
// debug duplicate frames
} else if (filled == 1) {
- decoder->FramesDuped++;
+ ++decoder->FramesDuped;
+ decoder->DropNextFrame = 0;
Warning(_
("video: display buffer empty, duping frame (%d/%d) %d\n"),
decoder->FramesDuped, decoder->FrameCounter,
@@ -6423,6 +6424,7 @@ static void VdpauAdvanceFrame(void)
if (filled <= 1 + 2 * decoder->Interlaced) {
// keep use of last surface
++decoder->FramesDuped;
+ decoder->DropNextFrame = 0;
Warning(_
("video: display buffer empty, duping frame (%d/%d) %d\n"),
decoder->FramesDuped, decoder->FrameCounter,