mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 19:06:33 +00:00
gldownload: Add missing ifdef for dmabuf and egl
This fixes the build for platforms that don't support one or the other.
This commit is contained in:
parent
472b8a3736
commit
4515e11c39
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
if (gst_caps_features_contains (features, GST_CAPS_FEATURE_MEMORY_GL_MEMORY)) {
|
||||||
/* do nothing with the buffer */
|
/* do nothing with the buffer */
|
||||||
|
#if GST_GL_HAVE_PLATFORM_EGL && GST_GL_HAVE_DMABUF
|
||||||
} else if (gst_caps_features_contains (features,
|
} else if (gst_caps_features_contains (features,
|
||||||
GST_CAPS_FEATURE_MEMORY_DMABUF)) {
|
GST_CAPS_FEATURE_MEMORY_DMABUF)) {
|
||||||
dl->dmabuf_allocator = gst_dmabuf_allocator_new ();
|
dl->dmabuf_allocator = gst_dmabuf_allocator_new ();
|
||||||
|
#endif
|
||||||
} else if (gst_caps_features_contains (features,
|
} else if (gst_caps_features_contains (features,
|
||||||
GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY)) {
|
GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY)) {
|
||||||
dl->do_pbo_transfers = TRUE;
|
dl->do_pbo_transfers = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue