mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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;
|
struct ConvertInfo *c_info = &convert->priv->convert_info;
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
gint views, v;
|
gint views, v;
|
||||||
GstVideoOverlayCompositionMeta *composition_meta;
|
|
||||||
GstGLSyncMeta *sync_meta;
|
GstGLSyncMeta *sync_meta;
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
|
||||||
|
@ -2503,19 +2502,20 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (convert->outbuf) {
|
if (convert->outbuf) {
|
||||||
|
GstVideoOverlayCompositionMeta *composition_meta;
|
||||||
GstGLSyncMeta *sync_meta =
|
GstGLSyncMeta *sync_meta =
|
||||||
gst_buffer_add_gl_sync_meta (convert->context, convert->outbuf);
|
gst_buffer_add_gl_sync_meta (convert->context, convert->outbuf);
|
||||||
|
|
||||||
if (sync_meta)
|
if (sync_meta)
|
||||||
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 =
|
||||||
gst_buffer_get_video_overlay_composition_meta (convert->inbuf);
|
gst_buffer_get_video_overlay_composition_meta (convert->inbuf);
|
||||||
if (composition_meta) {
|
if (composition_meta) {
|
||||||
GST_DEBUG ("found video overlay composition meta, applying on output.");
|
GST_DEBUG ("found video overlay composition meta, applying on output.");
|
||||||
gst_buffer_add_video_overlay_composition_meta
|
gst_buffer_add_video_overlay_composition_meta
|
||||||
(convert->outbuf, composition_meta->overlay);
|
(convert->outbuf, composition_meta->overlay);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
convert->priv->result = res;
|
convert->priv->result = res;
|
||||||
|
|
Loading…
Reference in a new issue