From 1da9222a88def07164b06ce1938b48aa61a5ba48 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 8 Feb 2004 02:17:14 +0000 Subject: [PATCH] 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) --- ChangeLog | 5 +++++ ext/ogg/gstoggdemux.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f6bb8a1b1..1e97eb2d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-07 David Schleef + + * 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 * ext/dv/gstdvdec.c: (gst_dvdec_init), (gst_dvdec_src_convert), diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index d8e4349b6..bd5a3bc73 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -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)); -- GitLab