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
This commit is contained in:
cehoyos 2009-11-10 09:52:43 +00:00
parent 3c2afd6786
commit 7c774fd5ce
1 changed files with 3 additions and 0 deletions

View File

@ -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;