# Ruby/GStreamer and pad events

**URL:** <https://www.ruby-forum.com/t/ruby-gstreamer-and-pad-events/172711>\
**Category:** Ruby-Gnome 2\
**Created:** [July 26, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/ruby-gstreamer-and-pad-events/172711 "2009-07-26T14:01:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sjames](https://www.ruby-forum.com/u/sjames)\
**Post date:** [July 26, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/ruby-gstreamer-and-pad-events/172711/1 "2009-07-26T14:01:38Z")

</div>

Hi folks,

I’m prototyping a gstreamer app using Ruby/GStreamer and have so far  
made some nice progress.

I’ve now advanced enough that I need to add soem event probes on some  
element pads. These probes are more or less filtered glib signals.  
The C API has a function that can do this, detailed at  
[http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#gst-pad-add-event-probe](http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#gst-pad-add-event-probe)

It looks as though this function isn’t mapped into the Ruby bindings.  
I’d look at adding it myself, but my C foo is weak. I’m not sure how to  
approach converting a ruby block to a function pointer suitable for  
passing to gst\_pad\_add\_event\_probe().

Has anyone run into this before? Does some kind person have a few spare  
cycles to add them to the bindings?

cheers

– James H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) Sun, 26 Jul 2009 21:42:04 +1000

---

<div class="post-metadata">

**Author:** ![sjames](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sjames](https://www.ruby-forum.com/u/sjames)\
**Post date:** [July 27, 2009, 2:42am UTC](https://www.ruby-forum.com/t/ruby-gstreamer-and-pad-events/172711/2 "2009-07-27T02:42:49Z")

</div>

Can’t really help you, but its cool to see someone is trying to kick  
ruby-gstreamer into the b\*\*\* to come along. 😉
