diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-03-01 15:01:22 +0000 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-03-02 14:30:49 +0000 |
commit | 2da8df0895dba8f84e5caac52c15e65fde4ac4cf (patch) | |
tree | 50adc3a8e9bc727eef2a1ba16f92b18a3d366e67 | |
parent | 263efc350dfc4bcfd454b828b43e82861e42e7a1 (diff) | |
download | gstreamer-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.c | 6 |
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), |