Fix uninitialized 'filled'.

This commit is contained in:
Johns 2011-12-23 00:14:50 +01:00
parent ba50ea7123
commit 1e18da47f7

View File

@ -4595,9 +4595,9 @@ static void VdpauSyncDisplayFrame(VdpauDecoder * decoder)
|| decoder->FramesDisplayed % 6)) { || decoder->FramesDisplayed % 6)) {
VdpauAdvanceFrame(); VdpauAdvanceFrame();
} }
filled = atomic_read(&decoder->SurfacesFilled);
#if 0 #if 0
// debug duplicate frames (done by VdpauAdvanceFrame) // debug duplicate frames (done by VdpauAdvanceFrame)
filled = atomic_read(&decoder->SurfacesFilled);
if (filled == 1) { if (filled == 1) {
decoder->FramesDuped++; decoder->FramesDuped++;
Warning(_("video: display buffer empty, duping frame (%d/%d)\n"), Warning(_("video: display buffer empty, duping frame (%d/%d)\n"),