Forum: Ruby-Gnome 2 Is it possible to read GError raised by GStreamer?

Eed8337939641eac5ad0b570bd6acf96?d=identicon&s=25 marcin@saepia.net (Guest)
on 2011-01-25 18:25
(Received via mailing list)
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.
7f28f9db46bfe8e9b8b5fcd90b2f1302?d=identicon&s=25 J. K. (j_k)
on 2011-02-18 01:15
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
Eed8337939641eac5ad0b570bd6acf96?d=identicon&s=25 marcin@saepia.net (Guest)
on 2011-02-21 22:46
(Received via mailing list)
I'll check that later, thanks!

m.

2011/2/18 J. K. <ruby-forum-incoming@andreas-s.net>:
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.