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:
cehoyos 2009-03-21 22:53:18 +00:00
parent a331f3fd15
commit 9970706263
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
vid_surface_num = -1;
resize();
if (!create_vdp_decoder(2))
if (IMGFMT_IS_VDPAU(image_format) && !create_vdp_decoder(2))
return -1;
return 0;