diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-10 09:52:43 +0000 |
---|---|---|
committer | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-10 09:52:43 +0000 |
commit | 7c774fd5ceb56d40790c4bde9da84f7eae71b133 (patch) | |
tree | e5f0bdbc2a981f74ba746a774a022103628aab4b /libvo | |
parent | 3c2afd67861769e82034b2ca276d2670964fc09c (diff) |
Add a default to switch(image_format), suppresses a warning after a future patch.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29869 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_vdpau.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 59b02af33e..6276ef02fd 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -578,11 +578,14 @@ static int create_vdp_decoder(int max_refs) 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; |