summaryrefslogtreecommitdiff
path: root/ext/gl
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2017-12-02 19:28:30 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-12-02 19:28:30 -0500
commit4515e11c39ce52255469900fd85ced6945e3a8c0 (patch)
tree5627a4830f0ffd3be256b8793775bebbcc0ad5c5 /ext/gl
parent472b8a3736d54c07196a21384f442f57a6a62737 (diff)
downloadgstreamer-plugins-bad-4515e11c39ce52255469900fd85ced6945e3a8c0.tar.gz
gldownload: Add missing ifdef for dmabuf and egl
This fixes the build for platforms that don't support one or the other.
Diffstat (limited to 'ext/gl')
-rw-r--r--ext/gl/gstgldownloadelement.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gl/gstgldownloadelement.c b/ext/gl/gstgldownloadelement.c
index 3f65bf3ef..11a1c8677 100644
--- a/ext/gl/gstgldownloadelement.c
+++ b/ext/gl/gstgldownloadelement.c
@@ -132,9 +132,11 @@ gst_gl_download_element_set_caps (GstBaseTransform * bt, GstCaps * in_caps,
if (gst_caps_features_contains (features, GST_CAPS_FEATURE_MEMORY_GL_MEMORY)) {
/* do nothing with the buffer */
+#if GST_GL_HAVE_PLATFORM_EGL && GST_GL_HAVE_DMABUF
} else if (gst_caps_features_contains (features,
GST_CAPS_FEATURE_MEMORY_DMABUF)) {
dl->dmabuf_allocator = gst_dmabuf_allocator_new ();
+#endif
} else if (gst_caps_features_contains (features,
GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY)) {
dl->do_pbo_transfers = TRUE;