changeset 36443:0d52d44ad7b6

Revert r36537. This was based on a wrong assumption. With the sample at hand, the error is actually reproducible with the MESA implementation (in fact, that one just crashes instead, so the workaround did no work for it).
author reimar
date Sun, 08 Dec 2013 17:53:59 +0000
parents ee46a4670903
children 45e6b96cb2e1
files libvo/vo_vdpau.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Sun Dec 08 17:52:23 2013 +0000
+++ b/libvo/vo_vdpau.c	Sun Dec 08 17:53:59 2013 +0000
@@ -1031,12 +1031,6 @@
         return VO_FALSE;
 
     vdp_st = vdp_decoder_render(decoder, rndr->render_state->surface, rndr->info, rndr->bitstream_buffers_used, rndr->bitstream_buffers);
-    if (vdp_st == VDP_STATUS_INVALID_SIZE) {
-        // reinit to work around a NVidia bug on aspect change
-        if (!create_vdp_decoder(image_format, vid_width, vid_height, max_refs))
-            return VO_FALSE;
-        vdp_st = vdp_decoder_render(decoder, rndr->render_state->surface, rndr->info, rndr->bitstream_buffers_used, rndr->bitstream_buffers);
-    }
     CHECK_ST_WARNING("Failed VDPAU decoder rendering");
     return VO_TRUE;
 }