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-01 19:23:02 +0000
commit4065fcb80a49924b70f0c8fc159dec0ff47943a1 (patch)
treee078696a9ebfcc38964811eb56b0f32dce8c9484
parentb3b47e2d99a5baf8ca7706802dbf10904dd69b11 (diff)
downloadgstreamer-plugins-good-4065fcb80a49924b70f0c8fc159dec0ff47943a1.tar.gz
flacparse: push tags in pre_push_frame
Push a tag event before pre-roll if we have tags. 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 34e1e5e66..d523c2dcf 100644
--- a/gst/audioparsers/gstflacparse.c
+++ b/gst/audioparsers/gstflacparse.c
@@ -1714,6 +1714,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),