From 25aa25be3a22e5d1ee8bf20b97e4da99838d501b Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 10 Jul 2012 18:37:49 +0200 Subject: [PATCH] oggdemux: Push out STREAM_START events when needed --- ext/ogg/gstoggdemux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index cbdf182b4e..5602bd8181 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -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);