validate: properly namespace config related checks

This commit is contained in:
Guillaume Desmottes 2019-02-08 13:32:12 +01:00
parent e96f2ca714
commit 916bf5cdf1
3 changed files with 7 additions and 6 deletions

View file

@ -396,11 +396,11 @@ gst_validate_report_load_issues (void)
_("The execution of an action did not properly happen"), NULL);
REGISTER_VALIDATE_ISSUE (ISSUE, SCENARIO_ACTION_EXECUTION_ISSUE,
_("An issue happened during the execution of a scenario"), NULL);
REGISTER_VALIDATE_ISSUE (CRITICAL, SCENARIO_ACTION_LATENCY_TOO_HIGH,
REGISTER_VALIDATE_ISSUE (CRITICAL, CONFIG_LATENCY_TOO_HIGH,
_
("The pipeline latency is higher than the maximum allowed by the scenario"),
NULL);
REGISTER_VALIDATE_ISSUE (CRITICAL, SCENARIO_ACTION_TOO_MANY_BUFFERS_DROPPED,
REGISTER_VALIDATE_ISSUE (CRITICAL, CONFIG_TOO_MANY_BUFFERS_DROPPED,
_
("The number of dropped buffers is higher than the maximum allowed by the scenario"),
NULL);

View file

@ -120,8 +120,9 @@ typedef enum {
#define SCENARIO_ACTION_EXECUTION_ERROR _QUARK("scenario::execution-error")
#define SCENARIO_ACTION_TIMEOUT _QUARK("scenario::action-timeout")
#define SCENARIO_ACTION_EXECUTION_ISSUE _QUARK("scenario::execution-issue")
#define SCENARIO_ACTION_LATENCY_TOO_HIGH _QUARK("scenario::latency-too-high")
#define SCENARIO_ACTION_TOO_MANY_BUFFERS_DROPPED _QUARK("scenario::too-many-buffers-dropped")
#define CONFIG_LATENCY_TOO_HIGH _QUARK("config::latency-too-high")
#define CONFIG_TOO_MANY_BUFFERS_DROPPED _QUARK("config::too-many-buffers-dropped")
#define G_LOG_ISSUE _QUARK("g-log::issue")
#define G_LOG_WARNING _QUARK("g-log::warning")

View file

@ -839,7 +839,7 @@ gst_validate_scenario_check_dropped (GstValidateScenario * scenario)
dropped, priv->max_dropped);
if (dropped > priv->max_dropped) {
GST_VALIDATE_REPORT (scenario, SCENARIO_ACTION_TOO_MANY_BUFFERS_DROPPED,
GST_VALIDATE_REPORT (scenario, CONFIG_TOO_MANY_BUFFERS_DROPPED,
"Too many buffers have been dropped: %d (max allowed: %d)",
dropped, priv->max_dropped);
}
@ -2925,7 +2925,7 @@ gst_validate_scenario_check_latency (GstValidateScenario * scenario,
if (priv->max_latency != GST_CLOCK_TIME_NONE &&
min_latency > priv->max_latency) {
GST_VALIDATE_REPORT (scenario, SCENARIO_ACTION_LATENCY_TOO_HIGH,
GST_VALIDATE_REPORT (scenario, CONFIG_LATENCY_TOO_HIGH,
"Pipeline latency is too high: %" GST_TIME_FORMAT " (max allowed %"
GST_TIME_FORMAT ")", GST_TIME_ARGS (min_latency),
GST_TIME_ARGS (priv->max_latency));