GNOME Bugzilla – Bug 338657
[patch] adder should send events from src-pad to all sink-pads
Last modified: 2006-04-28 20:34:11 UTC
adder is using gst_pad_event_default_dispatch(), it should override this to send events to add sink pads. gstbin.c(1918):gst_bin_send_event:<audio_sink_0x81384c8> Sending seek event to sink children DEBUG (0x8052228 - 0:00:04.214229000) GST_ELEMENT_PADS(23709) gstelement.c(1206):gst_element_send_event: send seek event on element player DEBUG (0x8052228 - 0:00:04.214600000) GST_EVENT(23709) gstpad.c(3765):gst_pad_send_event: have event type seek on pad sink:proxypad1 DEBUG (0x8052228 - 0:00:04.214867000) GST_EVENT(23709) gstpad.c(3765):gst_pad_send_event: have event type seek on pad audioconvert_0x81384c8:src DEBUG (0x8052228 - 0:00:04.215134000) GST_EVENT(23709) gstpad.c(3765):gst_pad_send_event: have event type seek on pad adder_0x81384c8:src LOG (0x8052228 - 0:00:04.215312000) GST_PADS(23709) gstpad.c(2769):gst_pad_event_default_dispatch:<adder_0x81384c8:src> sending event 0x81507e0 (seek) to one sink pad adder_0x81384c8:sink0 DEBUG (0x8052228 - 0:00:04.215511000) GST_EVENT(23709) gstpad.c(3765):gst_pad_send_event: have event type seek on pad output_gain_0x813ff88:src DEBUG (0x8052228 - 0:00:04.215754000) GST_EVENT(23709) gstpad.c(3765):gst_pad_send_event: have event type seek on pad beep1_0x813ff88:src DEBUG (0x8052228 - 0:00:04.216056000) basesrc(23709) gstbasesrc.c(761):gst_base_src_perform_seek:<beep1_0x813ff88> doing seek
fixed locally
indeed, as read from the documentation of gst_pad_event_default: * Note that if there are many possible sink * pads that are internally linked to @pad, only one will be sent an event. * Multi-sinkpad elements should implement custom event handlers. You can post the patch here, I you want.
Created attachment 63809 [details] [review] fix the problem
Doesn't the patch leak the event in the end, ie. shouldn't there also be gst_event_unref (event) at the end of gst_adder_src_event()?