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
This commit is contained in:
Luis de Bethencourt 2016-03-01 15:01:22 +00:00
parent b3b47e2d99
commit 4065fcb80a

View file

@ -1714,6 +1714,12 @@ gst_flac_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
flacparse->sent_codec_tag = TRUE; 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 */ /* Push toc */
if (flacparse->toc) { if (flacparse->toc) {
gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (flacparse), gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (flacparse),