Check directly with GST_IS_TAG_SETTER instead of using the
deprecated GstImplementsInterface
Fixes the image tag setting unit test
}
}
- /* 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