]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
libva: don't use only log handlers for newer libva, fixes #4679
authorJaroslav Kysela <perex@perex.cz>
Wed, 8 Nov 2017 17:12:54 +0000 (18:12 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 8 Nov 2017 17:13:00 +0000 (18:13 +0100)
src/libav.c

index 3b41112fd273d36f4f82eecca2f23da152c60148..f4e66b55b78184a97b44b5e2b31fe25e524e8a18 100644 (file)
@@ -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
 }
 
 /**