mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
camerabin2: Set tagsetters to merge replace mode
The default for tagsetters is to use merge keep mode, so tags would never be replaced and all captures would have the same tags. This commit watches all elements added into encodebin and sets all tagsetters to merge replace mode
This commit is contained in:
parent
f1fa6c6531
commit
e19a488bce
1 changed files with 6 additions and 0 deletions
|
@ -828,6 +828,12 @@ encodebin_element_added (GstElement * encodebin, GstElement * new_element,
|
|||
g_object_set (new_element, "skip-to-first", TRUE, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
if (gst_element_implements_interface (new_element, GST_TYPE_TAG_SETTER)) {
|
||||
GstTagSetter *tagsetter = GST_TAG_SETTER (new_element);
|
||||
|
||||
gst_tag_setter_set_tag_merge_mode (tagsetter, GST_TAG_MERGE_REPLACE);
|
||||
}
|
||||
}
|
||||
|
||||
#define VIDEO_PAD 1
|
||||
|
|
Loading…
Reference in a new issue