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)
This commit is contained in:
parent
96a34af04f
commit
1da9222a88
@ -1,3 +1,8 @@
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user