glfilter: Fix building without EGL support
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 13 May 2014 17:16:34 +0000 (13:16 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:40 +0000 (19:31 +0000)
This fixes the OSX build and any builds with --disable-egl. That issue
was introduced in "glfilter: rewrite transform_caps to preserve caps fields".

https://bugzilla.gnome.org/show_bug.cgi?id=729861

gst-libs/gst/gl/gstglfilter.c

index e567f03..10d5a2c 100644 (file)
@@ -697,15 +697,19 @@ gst_gl_filter_transform_caps (GstBaseTransform * bt,
   if (direction == GST_PAD_SINK) {
     GstCaps *glcaps = gst_gl_filter_set_caps_features (caps,
         GST_CAPS_FEATURE_MEMORY_GL_MEMORY);
+#if GST_GL_HAVE_PLATFORM_EGL
     GstCaps *eglcaps = gst_gl_filter_set_caps_features (caps,
         GST_CAPS_FEATURE_MEMORY_EGL_IMAGE);
+#endif
     GstCaps *uploadcaps = gst_gl_filter_set_caps_features (caps,
         GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META);
 
     tmp = gst_caps_new_empty ();
 
     tmp = gst_caps_merge (tmp, glcaps);
+#if GST_GL_HAVE_PLATFORM_EGL
     tmp = gst_caps_merge (tmp, eglcaps);
+#endif
     tmp = gst_caps_merge (tmp, uploadcaps);
     tmp = gst_caps_merge (tmp, gst_caps_copy (caps));
   } else {