mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
oggdemux: Push out STREAM_START events when needed
This commit is contained in:
parent
a0fbf92d43
commit
25aa25be3a
1 changed files with 3 additions and 0 deletions
|
@ -822,6 +822,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
|
|||
}
|
||||
}
|
||||
if (pad->map.caps) {
|
||||
gst_pad_push_event (GST_PAD (pad), gst_event_new_stream_start ());
|
||||
gst_pad_set_caps (GST_PAD (pad), pad->map.caps);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (ogg, "stream parser didn't create src pad caps");
|
||||
|
@ -2647,6 +2648,8 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain,
|
|||
pad->map.taglist = NULL;
|
||||
}
|
||||
|
||||
gst_pad_push_event (GST_PAD (pad), gst_event_new_stream_start ());
|
||||
|
||||
/* Set headers on caps */
|
||||
pad->map.caps =
|
||||
gst_ogg_demux_set_header_on_caps (ogg, pad->map.caps, pad->map.headers);
|
||||
|
|
Loading…
Reference in a new issue