summaryrefslogtreecommitdiff
path: root/ext/kate
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-08-04 16:31:30 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-08-04 16:31:30 +0100
commit489b102a43653efef9aef58e1c19e4c92692a9e7 (patch)
tree89adf6504847c89e0a8bbdb9cacbc391fe7cd906 /ext/kate
parenta7037cd0e30fa59d26627fac27241e33d543c10c (diff)
downloadgstreamer-plugins-bad-489b102a43653efef9aef58e1c19e4c92692a9e7.tar.gz
gst_tag_list_free -> gst_tag_list_unref
Diffstat (limited to 'ext/kate')
-rw-r--r--ext/kate/gstkateenc.c4
-rw-r--r--ext/kate/gstkatetag.c4
-rw-r--r--ext/kate/gstkateutil.c12
3 files changed, 10 insertions, 10 deletions
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);
}