Example #1
1
InfoMessagePtr InfoMessage::create(const ObjectPtr & source,
                                   const QGlib::Error & error, const char *debug)
{
    //stupid GstMessage api takes non-const GError while it should
    GError *e = const_cast<GError*>(static_cast<const GError*>(error));
    return InfoMessagePtr::wrap(gst_message_new_info(source, e, debug), false);
}
Example #2
1
static VALUE
info_initialize(VALUE self, VALUE src, VALUE error, VALUE debug)
{
    G_INITIALIZE(self, gst_message_new_info(RVAL2GST_OBJ(src),
                                            RVAL2GERROR(error), /* FIXME */
                                            RVAL2CSTR(debug)));
    return Qnil;
}