From 9970706263e75dbb37d52bb88ca3228b96c75d7f Mon Sep 17 00:00:00 2001 From: cehoyos Date: Sat, 21 Mar 2009 22:53:18 +0000 Subject: 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 --- libvo/vo_vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3