Message.parseError

void parseError(out glib.error.ErrorWrap gerror, out string debug_)

Extracts the GError and debug string from the GstMessage. The values returned in the output arguments are copies; the caller must free them when done.

Typical usage of this function might be:

...
 switch (GST_MESSAGE_TYPE (msg)) {
   case GST_MESSAGE_ERROR: {
     GError *err = NULL;
     gchar *dbg_info = NULL;

     gst_message_parse_error (msg, &err, &dbg_info);
     g_printerr ("ERROR from element %s: %s\n",
         GST_OBJECT_NAME (msg->src), err->message);
     g_printerr ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
     g_error_free (err);
     g_free (dbg_info);
     break;
   }
   ...
 }
 ...

MT safe.

Parameters

gerrorlocation for the GError
debug_location for the debug message, or null