Commit 8a8baa6a authored by Thiago Santos's avatar Thiago Santos

camerabin: port tagsetter mode setting code

Check directly with GST_IS_TAG_SETTER instead of using the
deprecated GstImplementsInterface

Fixes the image tag setting unit test
parent 63eeb11b
......@@ -1178,13 +1178,11 @@ encodebin_element_added (GstElement * encodebin, GstElement * new_element,
}
}
/* TODO porting
if (gst_element_implements_interface (new_element, GST_TYPE_TAG_SETTER)) {
GstTagSetter *tagsetter = GST_TAG_SETTER (new_element);
if (GST_IS_TAG_SETTER (new_element)) {
GstTagSetter *tagsetter = GST_TAG_SETTER (new_element);
gst_tag_setter_set_tag_merge_mode (tagsetter, GST_TAG_MERGE_REPLACE);
}
*/
gst_tag_setter_set_tag_merge_mode (tagsetter, GST_TAG_MERGE_REPLACE);
}
}
#define VIDEO_PAD 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment