[vlc-commits] commit: libva-enabled avcodec needs X11 ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sun Jul 25 10:20:12 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 25 11:18:34 2010 +0300| [ce4abeae3c121c6da617bd6db2682d36fe91e3ae] | committer: Rémi Denis-Courmont 

libva-enabled avcodec needs X11

(cherry picked from commit b4bf94e06761276859f4a1f36c303269fb7035fd)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=ce4abeae3c121c6da617bd6db2682d36fe91e3ae
---

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0aea569..fe5a688 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2697,8 +2697,8 @@ AS_IF([test "${enable_libva}" != "no"], [
         CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
         CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}"
         AC_CHECK_HEADERS(libavcodec/vaapi.h, [
-           VLC_ADD_LIBS([avcodec],[$LIBVA_LIBS])
-           VLC_ADD_CFLAGS([avcodec],[$LIBVA_CFLAGS])
+           VLC_ADD_LIBS([avcodec],[$LIBVA_LIBS ${X_LIBS} ${X_PRE_LIBS} -lX11])
+           VLC_ADD_CFLAGS([avcodec],[$LIBVA_CFLAGS ${X_CFLAGS}])
            AC_DEFINE(HAVE_AVCODEC_VAAPI, 1, [Define if avcodec has to be built with VAAPI support.])
            echo "VAAPI acceleration activated"
         ],[



More information about the vlc-commits mailing list