diff --git a/subprojects/gst-plugins-base/ext/gl/gstgldownloadelement.c b/subprojects/gst-plugins-base/ext/gl/gstgldownloadelement.c index 19518277a2..1d3ee1adba 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstgldownloadelement.c +++ b/subprojects/gst-plugins-base/ext/gl/gstgldownloadelement.c @@ -1237,8 +1237,14 @@ gst_gl_download_element_prepare_output_buffer (GstBaseTransform * bt, (void) bclass; in_sync_meta = gst_buffer_get_gl_sync_meta (inbuf); - if (in_sync_meta) - gst_gl_sync_meta_wait (in_sync_meta, context); + if (in_sync_meta) { + if (context) { + gst_gl_sync_meta_wait (in_sync_meta, context); + } else if (dl->mode != GST_GL_DOWNLOAD_MODE_PASSTHROUGH) { + GST_WARNING_OBJECT (dl, "No configured GL context in non-passthrough " + "mode. Cannot wait on incoming `GstGLSyncMeta`"); + } + } #if GST_GL_HAVE_PLATFORM_EGL && defined(HAVE_NVMM) if (dl->mode == GST_GL_DOWNLOAD_MODE_NVMM) {