mux = GST_MATROSKA_MUX (gst_pad_get_parent (pad));
- /* FIXME: aren't we either leaking events here or doing a wrong unref? */
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_TAG:{
gchar *lang = NULL;
g_free (lang);
}
+ /* FIXME: what about stream-specific tags? */
gst_tag_setter_merge_tags (GST_TAG_SETTER (mux), list,
gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (mux)));
+
+ /* handled this, don't want collectpads to forward it downstream */
+ ret = FALSE;
+ gst_event_unref (event);
break;
}
case GST_EVENT_NEWSEGMENT:
/* now GstCollectPads can take care of the rest, e.g. EOS */
if (ret)
ret = mux->collect_event (pad, event);
+
gst_object_unref (mux);
return ret;