Is it possible to read GError raised by GStreamer?

Hi,

I use ruby-gnome2 bindings to operate on GStreamer.

When my pipeline raises an error, I catch it on the bus.

The message that I receive is associated with so-called “structure”,
which actually contain two keys, for example:

gerror = #<#Class:0x7f7960ee7b78:0x7f7960ee78d0>
debug = gsttcpserversrc.c(437): gst_tcp_server_src_start ():
/GstPipeline:pipeline0/GstTCPServerSrc:tcpserversrc0:
bind failed: Address already in use

as debug can be translated by OS, I need to get into code of gerror.
Seems that class is unnamed, and contains no specific functions to the
GError.

Is there any way to read that?

m.

hi marcin -

not sure if this helps at all - i may well be misunderstanding the
question - but i use gstreamer with gtk2, and i parse the error messages
like this…

bus = @pipeline.bus
bus.add_watch {|bus, message|
case message.type
when Gst::Message::ERROR
p message.parse
Gtk.main_quit
…}

-jk

I’ll check that later, thanks!

m.

2011/2/18 J. K. [email protected]:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs