diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-21 22:53:18 +0000 |
---|---|---|
committer | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-21 22:53:18 +0000 |
commit | 9970706263e75dbb37d52bb88ca3228b96c75d7f (patch) | |
tree | 9ad56b7ab93659e7c6e9287ef09757e7aaad9a88 | |
parent | a331f3fd15b68f29103ef007830e110a69468f97 (diff) |
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.c | 2 |
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; |