summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-21 22:53:18 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-21 22:53:18 +0000
commit9970706263e75dbb37d52bb88ca3228b96c75d7f (patch)
tree9ad56b7ab93659e7c6e9287ef09757e7aaad9a88
parenta331f3fd15b68f29103ef007830e110a69468f97 (diff)
downloadmpv-9970706263e75dbb37d52bb88ca3228b96c75d7f.tar.bz2
mpv-9970706263e75dbb37d52bb88ca3228b96c75d7f.tar.xz
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
-rw-r--r--libvo/vo_vdpau.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c
index 6a5936c959..3e7a4b31a8 100644
--- a/libvo/vo_vdpau.c
+++ b/libvo/vo_vdpau.c
@@ -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;