mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
validate: Enhance output about critical errors
+Lower some warning to INFO
This commit is contained in:
parent
6da09fb919
commit
5c50219fae
2 changed files with 16 additions and 3 deletions
|
@ -122,18 +122,31 @@ gst_validate_runner_printf (GstValidateRunner * runner)
|
||||||
GSList *tmp;
|
GSList *tmp;
|
||||||
guint count = 0;
|
guint count = 0;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
GList *criticals = NULL;
|
||||||
|
|
||||||
for (tmp = gst_validate_runner_get_reports (runner); tmp; tmp = tmp->next) {
|
for (tmp = gst_validate_runner_get_reports (runner); tmp; tmp = tmp->next) {
|
||||||
GstValidateReport *report = tmp->data;
|
GstValidateReport *report = tmp->data;
|
||||||
|
|
||||||
gst_validate_report_printf (report);
|
gst_validate_report_printf (report);
|
||||||
if (ret == 0 && report->level == GST_VALIDATE_REPORT_LEVEL_CRITICAL) {
|
if (ret == 0 && report->level == GST_VALIDATE_REPORT_LEVEL_CRITICAL) {
|
||||||
g_printerr ("Got critical error %s, setting return value to 18\n",
|
criticals = g_list_append (criticals, tmp->data);
|
||||||
((GstValidateReport *) (tmp->data))->message);
|
|
||||||
ret = 18;
|
ret = 18;
|
||||||
}
|
}
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (criticals) {
|
||||||
|
GList *iter;
|
||||||
|
|
||||||
|
g_printerr ("\n\n==== Got criticals, Return value set to 18 ====\n");
|
||||||
|
|
||||||
|
for (iter = criticals; iter; iter = iter->next) {
|
||||||
|
g_printerr (" Critical error %s\n",
|
||||||
|
((GstValidateReport *) (iter->data))->message);
|
||||||
|
}
|
||||||
|
g_printerr ("\n");
|
||||||
|
}
|
||||||
|
|
||||||
gst_validate_printf (NULL, "Pipeline finished, issues found: %u\n", count);
|
gst_validate_printf (NULL, "Pipeline finished, issues found: %u\n", count);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,7 @@ gst_validate_action_get_clocktime (GstValidateScenario * scenario,
|
||||||
gchar *error = NULL;
|
gchar *error = NULL;
|
||||||
|
|
||||||
if (!(strval = gst_structure_get_string (action->structure, name))) {
|
if (!(strval = gst_structure_get_string (action->structure, name))) {
|
||||||
GST_WARNING_OBJECT (scenario, "Could not find %s", name);
|
GST_INFO_OBJECT (scenario, "Could not find %s", name);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
val =
|
val =
|
||||||
|
|
Loading…
Reference in a new issue