diff --git a/tests/check/elements/ofa.c b/tests/check/elements/ofa.c index 2861267592..37b9d8e1d2 100644 --- a/tests/check/elements/ofa.c +++ b/tests/check/elements/ofa.c @@ -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);