From 4065fcb80a49924b70f0c8fc159dec0ff47943a1 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 1 Mar 2016 15:01:22 +0000 Subject: [PATCH] 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 --- gst/audioparsers/gstflacparse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 34e1e5e664..d523c2dcfc 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),