mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
glcolorconvert: update existing sync meta if outbuf has one
Instead of always adding a new one, which means the buffer could end up with multiple sync meta instances. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6962>
This commit is contained in:
parent
48f63a9c64
commit
c305fe7a35
1 changed files with 6 additions and 4 deletions
|
@ -3072,9 +3072,11 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sync_meta = gst_buffer_add_gl_sync_meta (convert->context, convert->outbuf);
|
sync_meta = gst_buffer_get_gl_sync_meta (convert->outbuf);
|
||||||
|
if (!sync_meta) {
|
||||||
if (sync_meta)
|
sync_meta = gst_buffer_add_gl_sync_meta (convert->context,
|
||||||
|
convert->outbuf);
|
||||||
|
}
|
||||||
gst_gl_sync_meta_set_sync_point (sync_meta, convert->context);
|
gst_gl_sync_meta_set_sync_point (sync_meta, convert->context);
|
||||||
|
|
||||||
composition_meta =
|
composition_meta =
|
||||||
|
|
Loading…
Reference in a new issue