[MPlayer-cvslog] r28758 - trunk/libvo/vo_vdpau.c

reimar subversion at mplayerhq.hu
Sat Feb 28 11:43:29 CET 2009


Author: reimar
Date: Sat Feb 28 11:43:28 2009
New Revision: 28758

Log:
Handle vdp_decoder_create failures better, in particular avoid unrelated
error messages and retry creating a decoder.

Modified:
   trunk/libvo/vo_vdpau.c

Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c	Sat Feb 28 11:06:52 2009	(r28757)
+++ trunk/libvo/vo_vdpau.c	Sat Feb 28 11:43:28 2009	(r28758)
@@ -785,6 +785,11 @@ static int draw_slice(uint8_t *image[], 
         }
         vdp_st = vdp_decoder_create(vdp_device, vdp_decoder_profile, vid_width, vid_height, max_refs, &decoder);
         CHECK_ST_WARNING("Failed creating VDPAU decoder");
+        if (vdp_st != VDP_STATUS_OK) {
+            decoder = VDP_INVALID_HANDLE;
+            decoder_max_refs = 0;
+            return VO_FALSE;
+        }
         decoder_max_refs = max_refs;
     }
     vdp_st = vdp_decoder_render(decoder, rndr->surface, (void *)&rndr->info, rndr->bitstream_buffers_used, rndr->bitstream_buffers);



More information about the MPlayer-cvslog mailing list