mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
flacparse: Push tags before the header buffers are pushed
This commit is contained in:
parent
1a49b4de63
commit
65f620af8e
1 changed files with 5 additions and 6 deletions
|
@ -294,7 +294,6 @@ gst_flac_parse_finalize (GObject * object)
|
||||||
flacparse->tags = NULL;
|
flacparse->tags = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
g_list_foreach (flacparse->headers, (GFunc) gst_mini_object_unref, NULL);
|
g_list_foreach (flacparse->headers, (GFunc) gst_mini_object_unref, NULL);
|
||||||
g_list_free (flacparse->headers);
|
g_list_free (flacparse->headers);
|
||||||
flacparse->headers = NULL;
|
flacparse->headers = NULL;
|
||||||
|
@ -1180,6 +1179,11 @@ push_headers:
|
||||||
gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (GST_BASE_PARSE (flacparse)), caps);
|
gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (GST_BASE_PARSE (flacparse)), caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
|
/* Push tags */
|
||||||
|
if (flacparse->tags)
|
||||||
|
gst_element_found_tags (GST_ELEMENT (flacparse),
|
||||||
|
gst_tag_list_copy (flacparse->tags));
|
||||||
|
|
||||||
/* push header buffers; update caps, so when we push the first buffer the
|
/* push header buffers; update caps, so when we push the first buffer the
|
||||||
* negotiated caps will change to caps that include the streamheader field */
|
* negotiated caps will change to caps that include the streamheader field */
|
||||||
for (l = flacparse->headers; l != NULL; l = l->next) {
|
for (l = flacparse->headers; l != NULL; l = l->next) {
|
||||||
|
@ -1198,11 +1202,6 @@ push_headers:
|
||||||
g_list_free (flacparse->headers);
|
g_list_free (flacparse->headers);
|
||||||
flacparse->headers = NULL;
|
flacparse->headers = NULL;
|
||||||
|
|
||||||
/* Push tags */
|
|
||||||
if (flacparse->tags)
|
|
||||||
gst_element_found_tags (GST_ELEMENT (flacparse),
|
|
||||||
gst_tag_list_copy (flacparse->tags));
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue