Mercurial > mplayer.hg
changeset 29827:d6d8b9d5a4fb
Add a default to switch(image_format), suppresses a warning after a future patch.
author | cehoyos |
---|---|
date | Tue, 10 Nov 2009 09:52:43 +0000 |
parents | 4eae69f3f4f4 |
children | fe055da6637c |
files | libvo/vo_vdpau.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_vdpau.c Tue Nov 10 00:45:19 2009 +0000 +++ b/libvo/vo_vdpau.c Tue Nov 10 09:52:43 2009 +0000 @@ -578,11 +578,14 @@ 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;