mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
validate: Properly notify user about missing plugins
This way it is clear in gst-validate-launcher that the failure is due to a missing plugin
This commit is contained in:
parent
f0511cc3a2
commit
3b6f187d85
1 changed files with 8 additions and 2 deletions
|
@ -125,8 +125,14 @@ _bus_handler (GstBus * bus, GstMessage * message,
|
|||
switch (GST_MESSAGE_TYPE (message)) {
|
||||
case GST_MESSAGE_ERROR:
|
||||
gst_message_parse_error (message, &err, &debug);
|
||||
GST_VALIDATE_REPORT (monitor, ERROR_ON_BUS,
|
||||
"Got error: %s -- Debug message: %s", err->message, debug);
|
||||
|
||||
if (g_error_matches (err, GST_CORE_ERROR, GST_CORE_ERROR_MISSING_PLUGIN)) {
|
||||
GST_VALIDATE_REPORT (monitor, MISSING_PLUGIN,
|
||||
"Error: %s -- Debug message: %s", err->message, debug);
|
||||
} else {
|
||||
GST_VALIDATE_REPORT (monitor, ERROR_ON_BUS,
|
||||
"Got error: %s -- Debug message: %s", err->message, debug);
|
||||
}
|
||||
g_error_free (err);
|
||||
g_free (debug);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue