Disabled old code before removement.

This commit is contained in:
Johns 2015-10-01 12:48:37 +02:00
parent 5b90137050
commit 9e56747a56
2 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,7 @@
User johns User johns
Date: Date:
Disabled old code before removement.
Handle change of audio ac3 downmix direct. Handle change of audio ac3 downmix direct.
Speedup queuing output surface, when decoder buffers are full. Speedup queuing output surface, when decoder buffers are full.
Fix bug: info shows wrong decoded video surfaces. Fix bug: info shows wrong decoded video surfaces.

16
video.c
View File

@ -9003,16 +9003,20 @@ static void VdpauSyncRenderFrame(VdpauDecoder * decoder,
} }
return; return;
} }
#if 1
// if video output buffer is full, wait and display surface. // if video output buffer is full, wait and display surface.
// loop for interlace // loop for interlace
// FIXME: wrong for multiple streams
#ifdef DEBUG
if (atomic_read(&decoder->SurfacesFilled) >= VIDEO_SURFACES_MAX) { if (atomic_read(&decoder->SurfacesFilled) >= VIDEO_SURFACES_MAX) {
Debug(3, "video/vdpau: this code part shouldn't be used\n"); #ifdef DEBUG
} Fatal("video/vdpau: this code part shouldn't be used\n");
#else
Info("video/vdpau: this code part shouldn't be used\n");
#endif #endif
return;
#if 1 }
#else
// FIXME: disabled for remove
// FIXME: wrong for multiple streams
// FIXME: this part code should be no longer be needed with new mpeg fix // FIXME: this part code should be no longer be needed with new mpeg fix
while (atomic_read(&decoder->SurfacesFilled) >= VIDEO_SURFACES_MAX) { while (atomic_read(&decoder->SurfacesFilled) >= VIDEO_SURFACES_MAX) {
struct timespec abstime; struct timespec abstime;