flacenc: Use the tag merge mode that was set on the interface for merging tag events

This commit is contained in:
Sebastian Dröge 2009-04-29 11:12:36 +02:00
parent b3782442ae
commit 5a7edcbd81

View file

@ -1003,7 +1003,8 @@ gst_flac_enc_sink_event (GstPad * pad, GstEvent * event)
case GST_EVENT_TAG: case GST_EVENT_TAG:
if (flacenc->tags) { if (flacenc->tags) {
gst_event_parse_tag (event, &taglist); gst_event_parse_tag (event, &taglist);
gst_tag_list_insert (flacenc->tags, taglist, GST_TAG_MERGE_REPLACE); gst_tag_list_insert (flacenc->tags, taglist,
gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (flacenc)));
} else { } else {
g_assert_not_reached (); g_assert_not_reached ();
} }