From f3d98fa1a31a5d8e0096e9b23956fcb756c3feee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 27 Feb 2018 09:48:23 -0600 Subject: [PATCH] roi-meta: duplicate params when copying meta When copying the meta the params list should be copy too into the new meta. https://bugzilla.gnome.org/show_bug.cgi?id=793883 --- gst-libs/gst/video/gstvideometa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/video/gstvideometa.c b/gst-libs/gst/video/gstvideometa.c index b072db9e4a..739e9f4c3a 100644 --- a/gst-libs/gst/video/gstvideometa.c +++ b/gst-libs/gst/video/gstvideometa.c @@ -695,6 +695,8 @@ gst_video_region_of_interest_meta_transform (GstBuffer * dest, GstMeta * meta, dmeta->id = smeta->id; dmeta->parent_id = smeta->parent_id; + dmeta->params = g_list_copy_deep (smeta->params, + (GCopyFunc) gst_structure_copy, NULL); } else if (GST_VIDEO_META_TRANSFORM_IS_SCALE (type)) { GstVideoMetaTransform *trans = data; gint ow, oh, nw, nh;