From 84e8e58c91f80e93e4f67b1cdc94c5e0b92c0446 Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 29 Oct 2012 19:29:43 +0100 Subject: [PATCH] Don't show black picture during still-pictures. --- video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/video.c b/video.c index 0741e7f..6726801 100644 --- a/video.c +++ b/video.c @@ -7804,9 +7804,11 @@ static void VdpauDisplayFrame(void) // need 1 frame for progressive, 3 frames for interlaced if (filled < 1 + 2 * decoder->Interlaced) { // FIXME: rewrite MixVideo to support less surfaces - if (VideoShowBlackPicture || decoder->Closing < -300) { + if ((VideoShowBlackPicture && !decoder->TrickSpeed) + || decoder->Closing < -300) { VdpauBlackSurface(decoder); VdpauMessage(3, "video/vdpau: black surface displayed\n"); + fprintf(stderr, "video/vdpau: black surface displayed\n"); } continue; }