mirror of
https://github.com/mpv-player/mpv
synced 2025-03-29 15:00:27 +00:00
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:
parent
3c2afd6786
commit
7c774fd5ce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user