summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2012-09-12 09:42:09 -0300
committerThiago Santos <thiago.sousa.santos@collabora.com>2012-09-12 09:48:32 -0300
commit8a8baa6a705b587a2d1989da5fe9277479129475 (patch)
tree13ae3e1fe1d9200c9291ec80a4f1e4c548931c80 /gst
parent63eeb11bfb6e12eb2dd507648ccb67e1b51bfdb0 (diff)
downloadgstreamer-plugins-bad-8a8baa6a705b587a2d1989da5fe9277479129475.tar.gz
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
Diffstat (limited to 'gst')
-rw-r--r--gst/camerabin2/gstcamerabin2.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c
index 697f21a79..f7c893b61 100644
--- a/gst/camerabin2/gstcamerabin2.c
+++ b/gst/camerabin2/gstcamerabin2.c
@@ -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