From 08dea01bf49c8159ce2fec8290bcc1c018105075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 12 Jan 2017 13:45:29 +0200 Subject: [PATCH] vaapiutils: Fix compilation with latest and previous libva releases vaSetInfoCallback() was defined after 0.39.4 / 1.7.3, so check for 0.39.5 instead. --- gst-libs/gst/vaapi/gstvaapiutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiutils.c b/gst-libs/gst/vaapi/gstvaapiutils.c index 1070630280..9e93b37abb 100644 --- a/gst-libs/gst/vaapi/gstvaapiutils.c +++ b/gst-libs/gst/vaapi/gstvaapiutils.c @@ -45,7 +45,7 @@ #define STRCASEP(p, x) STRCASE(CONCAT(p, x)) #define STRCASE(x) case x: return STRINGIFY(x) -#if VA_CHECK_VERSION (0,39,4) +#if VA_CHECK_VERSION (0,39,5) static void gst_vaapi_log (const char *message) { @@ -66,7 +66,7 @@ vaapi_initialize (VADisplay dpy) gint major_version, minor_version; VAStatus status; -#if VA_CHECK_VERSION (0,39,4) +#if VA_CHECK_VERSION (0,39,5) vaSetInfoCallback (gst_vaapi_log); #endif