summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2016-03-01 15:01:22 +0000
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-03-02 14:30:49 +0000
commit2da8df0895dba8f84e5caac52c15e65fde4ac4cf (patch)
tree50adc3a8e9bc727eef2a1ba16f92b18a3d366e67
parent263efc350dfc4bcfd454b828b43e82861e42e7a1 (diff)
downloadgstreamer-plugins-good-2da8df0895dba8f84e5caac52c15e65fde4ac4cf.tar.gz
flacparse: push tags in pre_push_frame
Push a tag event before pre-roll if we have tags. This issue breaks tag reading via GstDiscoverer: https://bugzilla.gnome.org/show_bug.cgi?id=762660
-rw-r--r--gst/audioparsers/gstflacparse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c
index bf598c7a2..41f50368a 100644
--- a/gst/audioparsers/gstflacparse.c
+++ b/gst/audioparsers/gstflacparse.c
@@ -1719,6 +1719,12 @@ gst_flac_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
flacparse->sent_codec_tag = TRUE;
}
+ /* Push tags */
+ if (flacparse->tags) {
+ gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (flacparse),
+ gst_event_new_tag (flacparse->tags));
+ flacparse->tags = NULL;
+ }
/* Push toc */
if (flacparse->toc) {
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (flacparse),