ofa: Fix warning message parsing

This commit is contained in:
Sebastian Dröge 2010-02-16 20:38:31 +01:00
parent 26e7e93bfd
commit 820700124e

View file

@ -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);