mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
ofa: Fix warning message parsing
This commit is contained in:
parent
26e7e93bfd
commit
820700124e
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ bus_handler (GstBus * bus, GstMessage * message, gpointer data)
|
|||
GError *gerror;
|
||||
gchar *debug;
|
||||
|
||||
gst_message_parse_error (message, &gerror, &debug);
|
||||
if (message->type == GST_MESSAGE_WARNING)
|
||||
gst_message_parse_warning (message, &gerror, &debug);
|
||||
else
|
||||
gst_message_parse_error (message, &gerror, &debug);
|
||||
gst_object_default_error (GST_MESSAGE_SRC (message), gerror, debug);
|
||||
gst_message_unref (message);
|
||||
g_error_free (gerror);
|
||||
|
|
Loading…
Reference in a new issue