gstreamer/gstreamer-sharp/glue/message.c

25 lines
452 B
C
Raw Normal View History

#include <glib/gerror.h>
#include <gst/gstmessage.h>
#include <glib/gquark.h>
gchar *
2009-04-07 09:27:20 +00:00
gstsharp_message_parse_error (GstMessage * message)
{
2009-04-07 09:27:20 +00:00
GError *gerror;
gchar *error;
2009-04-07 09:27:20 +00:00
gst_message_parse_error (message, &gerror, NULL);
2009-04-07 09:27:20 +00:00
error = g_strdup (gerror->message);
g_error_free (gerror);
return error;
}
GError *
2009-04-07 09:27:20 +00:00
gstsharp_message_error_new ()
{
2009-04-07 09:27:20 +00:00
GQuark domain = g_quark_from_string ("test");
return g_error_new (domain, 10, "test error");
}