After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 693314 - gst_element_send_event on GstBin without sink/src element but with sink/src ghostpads
gst_element_send_event on GstBin without sink/src element but with sink/src g...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.x
Other Linux
: Normal normal
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-02-07 11:41 UTC by Alexander Schrab
Modified: 2013-02-12 09:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Iterate over ghost pads as well and send event there (2.55 KB, patch)
2013-02-07 11:52 UTC, Alexander Schrab
committed Details | Review

Description Alexander Schrab 2013-02-07 11:41:38 UTC
GstBin only tries to relay events to sink/source child elements as default action in gst_element_send_event. This is fine for pipelines where there are always both sinks and sources and no external pads. But my case is a uridecodebin with no sink elements to handle a seek event I try to send to it. There are however several src ghost pads that would be perfect to relay the event to.

I suggest adding an iteration over ghost pads in addition to the existing normal functionality of iterating sink/src elements in gst_bin_send_event.
Comment 1 Alexander Schrab 2013-02-07 11:52:11 UTC
Created attachment 235378 [details] [review]
Iterate over ghost pads as well and send event there
Comment 2 Sebastian Dröge (slomo) 2013-02-12 09:23:49 UTC
commit 983fb0f5da92eb157bac52c5e98b3e2202683beb
Author: Alexander Schrab <alexas@axis.com>
Date:   Thu Feb 7 12:47:02 2013 +0100

    bin: Let gst_bin_send_event() send events to ghost pads as well