mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
audiodecoder: try harder to avoid sending unnecessary tag updates
This commit is contained in:
parent
30b7cc6670
commit
135cad5b6e
1 changed files with 2 additions and 1 deletions
|
@ -2202,8 +2202,8 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
|
|||
if (dec->priv->upstream_tags) {
|
||||
gst_tag_list_unref (dec->priv->upstream_tags);
|
||||
dec->priv->upstream_tags = NULL;
|
||||
}
|
||||
dec->priv->taglist_changed = TRUE;
|
||||
}
|
||||
GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
|
||||
|
||||
ret = gst_audio_decoder_push_event (dec, event);
|
||||
|
@ -2341,6 +2341,7 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
|
|||
}
|
||||
gst_event_unref (event);
|
||||
event = gst_audio_decoder_create_merged_tags_event (dec);
|
||||
dec->priv->taglist_changed = FALSE;
|
||||
GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue