mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
camerabin2: imagecapturebin: Fix tags merging mode
Use merge replace mode to allow new tags to override old ones and fix the use case where the last sent tags should be serialized to the captured images.
This commit is contained in:
parent
dfdc6255f8
commit
912800fb76
1 changed files with 8 additions and 0 deletions
|
@ -327,6 +327,14 @@ gst_image_capture_bin_change_state (GstElement * element, GstStateChange trans)
|
|||
if (!gst_image_capture_bin_create_elements (imagebin)) {
|
||||
return GST_STATE_CHANGE_FAILURE;
|
||||
}
|
||||
|
||||
/* set our image muxer to MERGE_REPLACE mode if it is a tagsetter */
|
||||
if (imagebin->muxer && gst_element_implements_interface (imagebin->muxer,
|
||||
GST_TYPE_TAG_SETTER)) {
|
||||
gst_tag_setter_set_tag_merge_mode (GST_TAG_SETTER (imagebin->muxer),
|
||||
GST_TAG_MERGE_REPLACE);
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue