gst_tag_list_free -> gst_tag_list_unref

This commit is contained in:
Tim-Philipp Müller 2012-08-04 16:13:36 +01:00
parent 0f99a78015
commit d736729b7b

View file

@ -375,7 +375,7 @@ gst_lamemp3enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
if (tags) { if (tags) {
gst_audio_encoder_merge_tags (enc, tags, GST_TAG_MERGE_REPLACE); gst_audio_encoder_merge_tags (enc, tags, GST_TAG_MERGE_REPLACE);
gst_tag_list_free (tags); gst_tag_list_unref (tags);
} }
return TRUE; return TRUE;
@ -383,7 +383,7 @@ gst_lamemp3enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
zero_output_rate: zero_output_rate:
{ {
if (tags) if (tags)
gst_tag_list_free (tags); gst_tag_list_unref (tags);
GST_ELEMENT_ERROR (lame, LIBRARY, SETTINGS, (NULL), GST_ELEMENT_ERROR (lame, LIBRARY, SETTINGS, (NULL),
("LAME mp3 audio decided on a zero sample rate")); ("LAME mp3 audio decided on a zero sample rate"));
return FALSE; return FALSE;
@ -819,7 +819,7 @@ gst_lamemp3enc_setup (GstLameMP3Enc * lame, GstTagList ** tags)
if ((command) < 0) { \ if ((command) < 0) { \
GST_ERROR_OBJECT (lame, "setup failed: " G_STRINGIFY (command)); \ GST_ERROR_OBJECT (lame, "setup failed: " G_STRINGIFY (command)); \
if (*tags) { \ if (*tags) { \
gst_tag_list_free (*tags); \ gst_tag_list_unref (*tags); \
*tags = NULL; \ *tags = NULL; \
} \ } \
return FALSE; \ return FALSE; \