From: Jaroslav Kysela Date: Wed, 8 Nov 2017 17:12:54 +0000 (+0100) Subject: libva: don't use only log handlers for newer libva, fixes #4679 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86d2fdf6ad6f5e4dac6d380d4f478b956472edd8;p=thirdparty%2Ftvheadend.git libva: don't use only log handlers for newer libva, fixes #4679 --- diff --git a/src/libav.c b/src/libav.c index 3b41112fd..f4e66b55b 100644 --- a/src/libav.c +++ b/src/libav.c @@ -270,10 +270,12 @@ libav_vaapi_init(void) { #if ENABLE_VAAPI #ifdef VA_FOURCC_I010 +#if !VA_CHECK_VERSION(1, 0, 0) vaSetErrorCallback(libav_va_error_callback); vaSetInfoCallback(libav_va_info_callback); #endif #endif +#endif } /**