if (tags) {
gst_audio_encoder_merge_tags (enc, tags, GST_TAG_MERGE_REPLACE);
- gst_tag_list_free (tags);
+ gst_tag_list_unref (tags);
}
return TRUE;
zero_output_rate:
{
if (tags)
- gst_tag_list_free (tags);
+ gst_tag_list_unref (tags);
GST_ELEMENT_ERROR (lame, LIBRARY, SETTINGS, (NULL),
("LAME mp3 audio decided on a zero sample rate"));
return FALSE;
if ((command) < 0) { \
GST_ERROR_OBJECT (lame, "setup failed: " G_STRINGIFY (command)); \
if (*tags) { \
- gst_tag_list_free (*tags); \
+ gst_tag_list_unref (*tags); \
*tags = NULL; \
} \
return FALSE; \