lamemp3enc: do not leak merged tags

This commit is contained in:
Mark Nauwelaerts 2011-12-26 18:15:41 +01:00
parent 30e29b6fdb
commit ee31252201

View file

@ -362,8 +362,10 @@ gst_lamemp3enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
GST_SECOND, lame->samplerate);
gst_audio_encoder_set_latency (enc, latency, latency);
if (tags)
if (tags) {
gst_audio_encoder_merge_tags (enc, tags, GST_TAG_MERGE_REPLACE);
gst_tag_list_free (tags);
}
return TRUE;