mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
oggdemux: send stream tags after newsegment and global tags
This commit is contained in:
parent
2319c85f46
commit
63ba9eafb1
1 changed files with 8 additions and 4 deletions
|
@ -1742,10 +1742,6 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain,
|
||||||
|
|
||||||
gst_element_add_pad (GST_ELEMENT (ogg), GST_PAD_CAST (pad));
|
gst_element_add_pad (GST_ELEMENT (ogg), GST_PAD_CAST (pad));
|
||||||
pad->added = TRUE;
|
pad->added = TRUE;
|
||||||
if (event && pad->map.taglist) {
|
|
||||||
gst_element_found_tags_for_pad (GST_ELEMENT_CAST (ogg),
|
|
||||||
GST_PAD_CAST (pad), pad->map.taglist);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/* prefer the index bitrate over the ones encoded in the streams */
|
/* prefer the index bitrate over the ones encoded in the streams */
|
||||||
ogg->bitrate = (idx_bitrate ? idx_bitrate : bitrate);
|
ogg->bitrate = (idx_bitrate ? idx_bitrate : bitrate);
|
||||||
|
@ -1775,6 +1771,14 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain,
|
||||||
|
|
||||||
pad = g_array_index (chain->streams, GstOggPad *, i);
|
pad = g_array_index (chain->streams, GstOggPad *, i);
|
||||||
|
|
||||||
|
/* FIXME also streaming thread */
|
||||||
|
if (pad->map.taglist) {
|
||||||
|
GST_DEBUG_OBJECT (ogg, "pushing tags");
|
||||||
|
gst_element_found_tags_for_pad (GST_ELEMENT_CAST (ogg),
|
||||||
|
GST_PAD_CAST (pad), pad->map.taglist);
|
||||||
|
pad->map.taglist = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (ogg, "pushing headers");
|
GST_DEBUG_OBJECT (ogg, "pushing headers");
|
||||||
/* push headers */
|
/* push headers */
|
||||||
for (walk = pad->map.headers; walk; walk = g_list_next (walk)) {
|
for (walk = pad->map.headers; walk; walk = g_list_next (walk)) {
|
||||||
|
|
Loading…
Reference in a new issue