mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
glimagesink: wait on the provided sync meta provided to glimagesink
This commit is contained in:
parent
c5f3406186
commit
c4452041a8
1 changed files with 5 additions and 0 deletions
|
@ -1386,6 +1386,7 @@ static GstFlowReturn
|
|||
gst_glimage_sink_prepare (GstBaseSink * bsink, GstBuffer * buf)
|
||||
{
|
||||
GstGLImageSink *glimage_sink;
|
||||
GstGLSyncMeta *sync_meta;
|
||||
GstBuffer **target;
|
||||
GstBuffer *old_input;
|
||||
|
||||
|
@ -1414,6 +1415,10 @@ gst_glimage_sink_prepare (GstBaseSink * bsink, GstBuffer * buf)
|
|||
if (glimage_sink->output_mode_changed)
|
||||
update_output_format (glimage_sink);
|
||||
|
||||
sync_meta = gst_buffer_get_gl_sync_meta (buf);
|
||||
if (sync_meta)
|
||||
gst_gl_sync_meta_wait (sync_meta, glimage_sink->context);
|
||||
|
||||
if (!prepare_next_buffer (glimage_sink)) {
|
||||
GST_GLIMAGE_SINK_UNLOCK (glimage_sink);
|
||||
if (old_input)
|
||||
|
|
Loading…
Reference in a new issue