Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
#include <gst/vaapi/gstvaapivideosink.h>
#include <gst/vaapi/gstvaapivideobuffer.h>
+#if USE_VAAPI_GLX
+#include <gst/vaapi/gstvaapivideobuffer_glx.h>
+#define gst_vaapi_video_buffer_new_from_pool(pool) \
+ gst_vaapi_video_buffer_glx_new_from_pool(pool)
+#define gst_vaapi_video_buffer_new_from_buffer(buffer) \
+ gst_vaapi_video_buffer_glx_new_from_buffer(buffer)
+#endif
+
#include "gstvaapipluginutil.h"
#include "gstvaapiconvert.h"
#include <gst/vaapi/gstvaapidecoder_ffmpeg.h>
#include <gst/video/videocontext.h>
+#if USE_VAAPI_GLX
+#include <gst/vaapi/gstvaapivideobuffer_glx.h>
+#define gst_vaapi_video_buffer_new(display) \
+ gst_vaapi_video_buffer_glx_new(GST_VAAPI_DISPLAY_GLX(display))
+#endif
+
#include "gstvaapidecode.h"
#include "gstvaapipluginutil.h"