mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
gst_tag_list_free -> gst_tag_list_unref
This commit is contained in:
parent
32857a7621
commit
c7fd90c842
6 changed files with 14 additions and 14 deletions
|
@ -460,7 +460,7 @@ gst_a52dec_update_streaminfo (GstA52Dec * a52dec)
|
|||
|
||||
gst_audio_decoder_merge_tags (GST_AUDIO_DECODER (a52dec), taglist,
|
||||
GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_free (taglist);
|
||||
gst_tag_list_unref (taglist);
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
|
@ -375,7 +375,7 @@ gst_lamemp3enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
|
|||
|
||||
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;
|
||||
|
@ -383,7 +383,7 @@ gst_lamemp3enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
|
|||
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;
|
||||
|
@ -819,7 +819,7 @@ gst_lamemp3enc_setup (GstLameMP3Enc * lame, GstTagList ** tags)
|
|||
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; \
|
||||
|
|
|
@ -143,7 +143,7 @@ gst_asf_demux_free_stream (GstASFDemux * demux, AsfStream * stream)
|
|||
{
|
||||
gst_caps_replace (&stream->caps, NULL);
|
||||
if (stream->pending_tags) {
|
||||
gst_tag_list_free (stream->pending_tags);
|
||||
gst_tag_list_unref (stream->pending_tags);
|
||||
stream->pending_tags = NULL;
|
||||
}
|
||||
if (stream->pad) {
|
||||
|
@ -186,7 +186,7 @@ gst_asf_demux_reset (GstASFDemux * demux, gboolean chain_reset)
|
|||
demux->adapter = NULL;
|
||||
}
|
||||
if (demux->taglist) {
|
||||
gst_tag_list_free (demux->taglist);
|
||||
gst_tag_list_unref (demux->taglist);
|
||||
demux->taglist = NULL;
|
||||
}
|
||||
if (demux->metadata) {
|
||||
|
@ -2583,15 +2583,15 @@ gst_asf_demux_add_global_tags (GstASFDemux * demux, GstTagList * taglist)
|
|||
return;
|
||||
|
||||
if (gst_tag_list_is_empty (taglist)) {
|
||||
gst_tag_list_free (taglist);
|
||||
gst_tag_list_unref (taglist);
|
||||
return;
|
||||
}
|
||||
|
||||
t = gst_tag_list_merge (demux->taglist, taglist, GST_TAG_MERGE_APPEND);
|
||||
gst_tag_list_set_scope (t, GST_TAG_SCOPE_GLOBAL);
|
||||
if (demux->taglist)
|
||||
gst_tag_list_free (demux->taglist);
|
||||
gst_tag_list_free (taglist);
|
||||
gst_tag_list_unref (demux->taglist);
|
||||
gst_tag_list_unref (taglist);
|
||||
demux->taglist = t;
|
||||
GST_LOG_OBJECT (demux, "global tags now: %" GST_PTR_FORMAT, demux->taglist);
|
||||
}
|
||||
|
@ -2849,7 +2849,7 @@ gst_asf_demux_process_ext_content_desc (GstASFDemux * demux, guint8 * data,
|
|||
not_enough_data:
|
||||
{
|
||||
GST_WARNING ("Unexpected end of data parsing ext content desc object");
|
||||
gst_tag_list_free (taglist);
|
||||
gst_tag_list_unref (taglist);
|
||||
return GST_FLOW_OK; /* not really fatal */
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@ gst_real_audio_demux_reset (GstRealAudioDemux * demux)
|
|||
}
|
||||
|
||||
if (demux->pending_tags) {
|
||||
gst_tag_list_free (demux->pending_tags);
|
||||
gst_tag_list_unref (demux->pending_tags);
|
||||
demux->pending_tags = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -669,7 +669,7 @@ gst_rmdemux_reset (GstRMDemux * rmdemux)
|
|||
gst_rmdemux_stream_clear_cached_subpackets (rmdemux, stream);
|
||||
gst_element_remove_pad (GST_ELEMENT (rmdemux), stream->pad);
|
||||
if (stream->pending_tags)
|
||||
gst_tag_list_free (stream->pending_tags);
|
||||
gst_tag_list_unref (stream->pending_tags);
|
||||
if (stream->subpackets)
|
||||
g_ptr_array_free (stream->subpackets, TRUE);
|
||||
g_free (stream->index);
|
||||
|
@ -681,7 +681,7 @@ gst_rmdemux_reset (GstRMDemux * rmdemux)
|
|||
rmdemux->n_video_streams = 0;
|
||||
|
||||
if (rmdemux->pending_tags != NULL) {
|
||||
gst_tag_list_free (rmdemux->pending_tags);
|
||||
gst_tag_list_unref (rmdemux->pending_tags);
|
||||
rmdemux->pending_tags = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ gst_rm_utils_read_tags (const guint8 * data, guint datalen,
|
|||
if (gst_tag_list_n_tags (tags) > 0)
|
||||
return tags;
|
||||
|
||||
gst_tag_list_free (tags);
|
||||
gst_tag_list_unref (tags);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue