mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 03:16:33 +00:00
16 lines
278 B
C
16 lines
278 B
C
|
|
||
|
#include <glib/gerror.h>
|
||
|
#include <gst/gstmessage.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;
|
||
|
}
|