mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
glcolorconvert: Don't copy overlay composition meta over to NULL outbufs
This commit is contained in:
parent
d002cd33d3
commit
64774ece0c
1 changed files with 8 additions and 8 deletions
|
@ -2387,7 +2387,6 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
|
|||
struct ConvertInfo *c_info = &convert->priv->convert_info;
|
||||
gboolean res = TRUE;
|
||||
gint views, v;
|
||||
GstVideoOverlayCompositionMeta *composition_meta;
|
||||
GstGLSyncMeta *sync_meta;
|
||||
GstFlowReturn ret;
|
||||
|
||||
|
@ -2503,19 +2502,20 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
|
|||
}
|
||||
|
||||
if (convert->outbuf) {
|
||||
GstVideoOverlayCompositionMeta *composition_meta;
|
||||
GstGLSyncMeta *sync_meta =
|
||||
gst_buffer_add_gl_sync_meta (convert->context, convert->outbuf);
|
||||
|
||||
if (sync_meta)
|
||||
gst_gl_sync_meta_set_sync_point (sync_meta, convert->context);
|
||||
}
|
||||
|
||||
composition_meta =
|
||||
gst_buffer_get_video_overlay_composition_meta (convert->inbuf);
|
||||
if (composition_meta) {
|
||||
GST_DEBUG ("found video overlay composition meta, applying on output.");
|
||||
gst_buffer_add_video_overlay_composition_meta
|
||||
(convert->outbuf, composition_meta->overlay);
|
||||
composition_meta =
|
||||
gst_buffer_get_video_overlay_composition_meta (convert->inbuf);
|
||||
if (composition_meta) {
|
||||
GST_DEBUG ("found video overlay composition meta, applying on output.");
|
||||
gst_buffer_add_video_overlay_composition_meta
|
||||
(convert->outbuf, composition_meta->overlay);
|
||||
}
|
||||
}
|
||||
|
||||
convert->priv->result = res;
|
||||
|
|
Loading…
Reference in a new issue