From 57bbd02c57f59715c1a5469aaff53b5cefcd29d4 Mon Sep 17 00:00:00 2001 From: Johns Date: Thu, 17 May 2012 16:52:08 +0200 Subject: [PATCH] Fix bug: Black screen is sometimes not shown. --- video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video.c b/video.c index 31db899..6e81c58 100644 --- a/video.c +++ b/video.c @@ -4533,7 +4533,7 @@ static void VaapiSyncDecoder(VaapiDecoder * decoder) "duping frame (%d/%d) %d v-buf\n"), decoder->FramesDuped, decoder->FrameCounter, VideoGetBuffers()); if (decoder->Closing < -300) { - atomic_set(&decoder->SurfacesFilled, 1); + atomic_set(&decoder->SurfacesFilled, 0); } } goto out; @@ -7868,7 +7868,7 @@ static void VdpauSyncDecoder(VdpauDecoder * decoder) "duping frame (%d/%d) %d v-buf\n"), decoder->FramesDuped, decoder->FrameCounter, VideoGetBuffers()); if (decoder->Closing < -300) { - atomic_set(&decoder->SurfacesFilled, 1); + atomic_set(&decoder->SurfacesFilled, 0); } } goto out;