changeset 28993:56d2b2886a28

10l: Only try to create vdpau decoder if hardware decoding is intended.
author cehoyos
date Sat, 21 Mar 2009 22:53:18 +0000
parents 947ef23ba798
children a03804d10dbf
files libvo/vo_vdpau.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Sat Mar 21 20:11:05 2009 +0000
+++ b/libvo/vo_vdpau.c	Sat Mar 21 22:53:18 2009 +0000
@@ -596,7 +596,7 @@
     vid_surface_num = -1;
     resize();
 
-    if (!create_vdp_decoder(2))
+    if (IMGFMT_IS_VDPAU(image_format) && !create_vdp_decoder(2))
         return -1;
 
     return 0;