Browse code

Fix VDPAU check to avoid printing spurious messages to the console.

Originally committed as revision 21016 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun authored on 2010/01/05 01:29:19
Showing 1 changed files
... ...
@@ -2500,11 +2500,12 @@ check_func XOpenDisplay -lX11           &&
2500 2500
 check_func XShmCreateImage -lX11 -lXext &&
2501 2501
 check_func XFixesGetCursorImage -lX11 -lXext -lXfixes
2502 2502
 
2503
-enabled vdpau_vdpau_h &&
2503
+if enabled vdpau_vdpau_h; then
2504 2504
 check_cpp_condition \
2505 2505
     vdpau/vdpau.h "defined VDP_DECODER_PROFILE_MPEG4_PART2_ASP" ||
2506 2506
     { echolog "Please upgrade to libvdpau >= 0.2 if you would like vdpau support." &&
2507 2507
       disable vdpau; }
2508
+fi
2508 2509
 
2509 2510
 enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
2510 2511