summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2015-08-16 18:28:09 +0100
committerTim-Philipp Müller <tim@centricular.com>2015-08-16 18:28:09 +0100
commit135cad5b6eecefec7aa6e780dbdf88d36835dd88 (patch)
tree25a7e0bec492c9c6954d2233939f04ca3ad902ae
parent30b7cc66708830ad6d3e986ef11b1eb21a9c3132 (diff)
downloadgstreamer-plugins-base-135cad5b6eecefec7aa6e780dbdf88d36835dd88.tar.gz
audiodecoder: try harder to avoid sending unnecessary tag updates
-rw-r--r--gst-libs/gst/audio/gstaudiodecoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c
index 62435b40f..d6a5e63f3 100644
--- a/gst-libs/gst/audio/gstaudiodecoder.c
+++ b/gst-libs/gst/audio/gstaudiodecoder.c
@@ -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;
}
- 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);
}