Commit 1da9222a authored by David Schleef's avatar David Schleef

ext/ogg/gstoggdemux.c: Don't push events to pads that haven't been created (#133508)

Original commit message from CVS:
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_handle_event): Don't
push events to pads that haven't been created (#133508)
parent 96a34af0
2004-02-07 David Schleef <ds@schleef.org>
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_handle_event): Don't
push events to pads that haven't been created (#133508)
2004-02-07 Jan Schmidt <thaytan@mad.scientist.com>
* ext/dv/gstdvdec.c: (gst_dvdec_init), (gst_dvdec_src_convert),
......
......@@ -423,9 +423,10 @@ gst_ogg_demux_handle_event (GstPad *pad, GstEvent *event)
GstOggChain *chain = &g_array_index (ogg->chains, GstOggChain, i);
for (walk = chain->pads; walk; walk = g_slist_next (walk)) {
GstOggPad *pad = (GstOggPad *) walk->data;
gst_event_ref (event);
if (GST_PAD_IS_USABLE (pad->pad))
if (pad->pad && GST_PAD_IS_USABLE (pad->pad)) {
gst_data_ref (GST_DATA (event));
gst_pad_push (pad->pad, GST_DATA (event));
}
}
}
gst_element_set_eos (GST_ELEMENT (ogg));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment