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

cehoyos subversion at mplayerhq.hu
Tue Nov 10 10:52:44 CET 2009


Author: cehoyos
Date: Tue Nov 10 10:52:43 2009
New Revision: 29869

Log:
Add a default to switch(image_format), suppresses a warning after a future patch.

Modified:
   trunk/libvo/vo_vdpau.c

Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c	Tue Nov 10 01:45:19 2009	(r29868)
+++ trunk/libvo/vo_vdpau.c	Tue Nov 10 10:52:43 2009	(r29869)
@@ -578,11 +578,14 @@ static int create_vdp_decoder(int max_re
     case IMGFMT_VDPAU_VC1:
         vdp_decoder_profile = VDP_DECODER_PROFILE_VC1_ADVANCED;
         break;
+    default:
+        goto err_out;
     }
     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) {
+err_out:
         decoder = VDP_INVALID_HANDLE;
         decoder_max_refs = 0;
         return 0;


More information about the MPlayer-cvslog mailing list