mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
transform: Also copy POOL metas and make sure to copy over metas when creating subbuffers
POOL meta just means that this specific instance of the meta is related to a pool, a copy should be made when reasonable and the flag should just not be set in the copy.
This commit is contained in:
parent
fefd4622a3
commit
231e77338c
1 changed files with 1 additions and 6 deletions
|
@ -1734,12 +1734,7 @@ foreach_metadata (GstBuffer * inbuf, GstMeta ** meta, gpointer user_data)
|
||||||
|
|
||||||
klass = GST_BASE_TRANSFORM_GET_CLASS (trans);
|
klass = GST_BASE_TRANSFORM_GET_CLASS (trans);
|
||||||
|
|
||||||
if (GST_META_FLAG_IS_SET (*meta, GST_META_FLAG_POOLED)) {
|
if (gst_meta_api_type_has_tag (info->api, _gst_meta_tag_memory)) {
|
||||||
/* never call the transform_meta with pool private metadata */
|
|
||||||
GST_DEBUG_OBJECT (trans, "not copying pooled metadata %s",
|
|
||||||
g_type_name (info->api));
|
|
||||||
do_copy = FALSE;
|
|
||||||
} else if (gst_meta_api_type_has_tag (info->api, _gst_meta_tag_memory)) {
|
|
||||||
/* never call the transform_meta with memory specific metadata */
|
/* never call the transform_meta with memory specific metadata */
|
||||||
GST_DEBUG_OBJECT (trans, "not copying memory specific metadata %s",
|
GST_DEBUG_OBJECT (trans, "not copying memory specific metadata %s",
|
||||||
g_type_name (info->api));
|
g_type_name (info->api));
|
||||||
|
|
Loading…
Reference in a new issue