summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-10 09:52:43 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-10 09:52:43 +0000
commit7c774fd5ceb56d40790c4bde9da84f7eae71b133 (patch)
treee5f0bdbc2a981f74ba746a774a022103628aab4b /libvo
parent3c2afd67861769e82034b2ca276d2670964fc09c (diff)
downloadmpv-7c774fd5ceb56d40790c4bde9da84f7eae71b133.tar.bz2
mpv-7c774fd5ceb56d40790c4bde9da84f7eae71b133.tar.xz
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.c3
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;