mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
validate: properly namespace config related checks
This commit is contained in:
parent
e96f2ca714
commit
916bf5cdf1
3 changed files with 7 additions and 6 deletions
|
@ -396,11 +396,11 @@ gst_validate_report_load_issues (void)
|
||||||
_("The execution of an action did not properly happen"), NULL);
|
_("The execution of an action did not properly happen"), NULL);
|
||||||
REGISTER_VALIDATE_ISSUE (ISSUE, SCENARIO_ACTION_EXECUTION_ISSUE,
|
REGISTER_VALIDATE_ISSUE (ISSUE, SCENARIO_ACTION_EXECUTION_ISSUE,
|
||||||
_("An issue happened during the execution of a scenario"), NULL);
|
_("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"),
|
("The pipeline latency is higher than the maximum allowed by the scenario"),
|
||||||
NULL);
|
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"),
|
("The number of dropped buffers is higher than the maximum allowed by the scenario"),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
|
@ -120,8 +120,9 @@ typedef enum {
|
||||||
#define SCENARIO_ACTION_EXECUTION_ERROR _QUARK("scenario::execution-error")
|
#define SCENARIO_ACTION_EXECUTION_ERROR _QUARK("scenario::execution-error")
|
||||||
#define SCENARIO_ACTION_TIMEOUT _QUARK("scenario::action-timeout")
|
#define SCENARIO_ACTION_TIMEOUT _QUARK("scenario::action-timeout")
|
||||||
#define SCENARIO_ACTION_EXECUTION_ISSUE _QUARK("scenario::execution-issue")
|
#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_ISSUE _QUARK("g-log::issue")
|
||||||
#define G_LOG_WARNING _QUARK("g-log::warning")
|
#define G_LOG_WARNING _QUARK("g-log::warning")
|
||||||
|
|
|
@ -839,7 +839,7 @@ gst_validate_scenario_check_dropped (GstValidateScenario * scenario)
|
||||||
dropped, priv->max_dropped);
|
dropped, priv->max_dropped);
|
||||||
|
|
||||||
if (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)",
|
"Too many buffers have been dropped: %d (max allowed: %d)",
|
||||||
dropped, priv->max_dropped);
|
dropped, priv->max_dropped);
|
||||||
}
|
}
|
||||||
|
@ -2925,7 +2925,7 @@ gst_validate_scenario_check_latency (GstValidateScenario * scenario,
|
||||||
|
|
||||||
if (priv->max_latency != GST_CLOCK_TIME_NONE &&
|
if (priv->max_latency != GST_CLOCK_TIME_NONE &&
|
||||||
min_latency > priv->max_latency) {
|
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 %"
|
"Pipeline latency is too high: %" GST_TIME_FORMAT " (max allowed %"
|
||||||
GST_TIME_FORMAT ")", GST_TIME_ARGS (min_latency),
|
GST_TIME_FORMAT ")", GST_TIME_ARGS (min_latency),
|
||||||
GST_TIME_ARGS (priv->max_latency));
|
GST_TIME_ARGS (priv->max_latency));
|
||||||
|
|
Loading…
Reference in a new issue