From 489b102a43653efef9aef58e1c19e4c92692a9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 4 Aug 2012 16:31:30 +0100 Subject: gst_tag_list_free -> gst_tag_list_unref --- ext/kate/gstkateenc.c | 4 ++-- ext/kate/gstkatetag.c | 4 ++-- ext/kate/gstkateutil.c | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'ext/kate') diff --git a/ext/kate/gstkateenc.c b/ext/kate/gstkateenc.c index 1e03c3599..fb84c4c1e 100644 --- a/ext/kate/gstkateenc.c +++ b/ext/kate/gstkateenc.c @@ -497,7 +497,7 @@ gst_kate_enc_set_metadata (GstKateEnc * ke) if (merged_tags) { GST_DEBUG_OBJECT (ke, "merged tags = %" GST_PTR_FORMAT, merged_tags); gst_tag_list_foreach (merged_tags, gst_kate_enc_metadata_set1, ke); - gst_tag_list_free (merged_tags); + gst_tag_list_unref (merged_tags); } } @@ -1081,7 +1081,7 @@ gst_kate_enc_change_state (GstElement * element, GstStateChange transition) case GST_STATE_CHANGE_PAUSED_TO_PLAYING: break; case GST_STATE_CHANGE_READY_TO_NULL: - gst_tag_list_free (ke->tags); + gst_tag_list_unref (ke->tags); ke->tags = NULL; break; default: diff --git a/ext/kate/gstkatetag.c b/ext/kate/gstkatetag.c index 38e2a3c35..0f0f05d02 100644 --- a/ext/kate/gstkatetag.c +++ b/ext/kate/gstkatetag.c @@ -316,14 +316,14 @@ gst_kate_tag_parse_packet (GstKateParse * parse, GstBuffer * buffer) /* build new tag list */ new_tags = gst_tag_list_merge (user_tags, old_tags, gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (kt))); - gst_tag_list_free (old_tags); + gst_tag_list_unref (old_tags); new_buf = gst_tag_list_to_vorbiscomment_buffer (new_tags, (const guint8 *) "\201kate\0\0\0\0", 9, encoder); gst_buffer_copy_into (new_buf, buffer, GST_BUFFER_COPY_TIMESTAMPS, 0, -1); - gst_tag_list_free (new_tags); + gst_tag_list_unref (new_tags); g_free (encoder); gst_buffer_unref (buffer); diff --git a/ext/kate/gstkateutil.c b/ext/kate/gstkateutil.c index d28158758..d4ca31125 100644 --- a/ext/kate/gstkateutil.c +++ b/ext/kate/gstkateutil.c @@ -129,7 +129,7 @@ gst_kate_util_decode_base_reset (GstKateDecoderBase * decoder) g_free (decoder->category); decoder->category = NULL; if (decoder->tags) { - gst_tag_list_free (decoder->tags); + gst_tag_list_unref (decoder->tags); decoder->tags = NULL; } decoder->original_canvas_width = 0; @@ -325,9 +325,9 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder, /* TODO: category - where should it go ? */ decoder->tags = gst_tag_list_merge (decoder->tags, tags, GST_TAG_MERGE_REPLACE); - gst_tag_list_free (tags); + gst_tag_list_unref (tags); if (old) - gst_tag_list_free (old); + gst_tag_list_unref (old); } } @@ -356,7 +356,7 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder, if (list) { decoder->tags = gst_tag_list_merge (decoder->tags, list, GST_TAG_MERGE_REPLACE); - gst_tag_list_free (list); + gst_tag_list_unref (list); } if (!decoder->tags) { @@ -375,7 +375,7 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder, NULL); if (old) - gst_tag_list_free (old); + gst_tag_list_unref (old); if (decoder->initialized) { gst_element_found_tags_for_pad (element, tagpad, decoder->tags); @@ -422,7 +422,7 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder, } } if (gst_tag_list_is_empty (evtags)) - gst_tag_list_free (evtags); + gst_tag_list_unref (evtags); else gst_element_found_tags_for_pad (element, tagpad, evtags); } -- cgit v1.2.1