mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
13873a6559
git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@63657 e3ebcda4-bce8-0310-ba0a-eca2169e7518
24 lines
460 B
C
24 lines
460 B
C
#include <glib/gerror.h>
|
|
#include <gst/gstmessage.h>
|
|
#include <glib/gquark.h>
|
|
|
|
gchar *
|
|
gstsharp_message_parse_error(GstMessage *message)
|
|
{
|
|
GError *gerror;
|
|
gchar *error;
|
|
|
|
gst_message_parse_error(message, &gerror, NULL);
|
|
|
|
error = g_strdup(gerror->message);
|
|
g_error_free(gerror);
|
|
|
|
return error;
|
|
}
|
|
|
|
GError *
|
|
gstsharp_message_error_new()
|
|
{
|
|
GQuark domain = g_quark_from_string ("test");
|
|
return g_error_new (domain, 10, "test error");
|
|
}
|