mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
glcolorconvert: wait on the sync meta for input buffers
This commit is contained in:
parent
c4452041a8
commit
6a75a07815
1 changed files with 5 additions and 0 deletions
|
@ -1933,6 +1933,7 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
gint views, v;
|
gint views, v;
|
||||||
GstVideoOverlayCompositionMeta *composition_meta;
|
GstVideoOverlayCompositionMeta *composition_meta;
|
||||||
|
GstGLSyncMeta *sync_meta;
|
||||||
|
|
||||||
convert->outbuf = NULL;
|
convert->outbuf = NULL;
|
||||||
|
|
||||||
|
@ -1941,6 +1942,10 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sync_meta = gst_buffer_get_gl_sync_meta (convert->inbuf);
|
||||||
|
if (sync_meta)
|
||||||
|
gst_gl_sync_meta_wait (sync_meta, convert->context);
|
||||||
|
|
||||||
convert->outbuf = gst_buffer_new ();
|
convert->outbuf = gst_buffer_new ();
|
||||||
if (!gst_gl_memory_setup_buffer (convert->context,
|
if (!gst_gl_memory_setup_buffer (convert->context,
|
||||||
convert->priv->to_texture_target, NULL, &convert->out_info, NULL,
|
convert->priv->to_texture_target, NULL, &convert->out_info, NULL,
|
||||||
|
|
Loading…
Reference in a new issue