mirror of https://github.com/mpv-player/mpv
10l: Only try to create vdpau decoder if hardware decoding is intended.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29028 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a331f3fd15
commit
9970706263
|
@ -596,7 +596,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||||
vid_surface_num = -1;
|
vid_surface_num = -1;
|
||||||
resize();
|
resize();
|
||||||
|
|
||||||
if (!create_vdp_decoder(2))
|
if (IMGFMT_IS_VDPAU(image_format) && !create_vdp_decoder(2))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue