mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
glfilter: Fix building without EGL support
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
This commit is contained in:
parent
e46de48f10
commit
5c4ebaca4f
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue