mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 22:48:49 +00:00
validate:scenario: Report an EXECUTION_ERROR on action execution failure
If the action type handles a better error report type, it should just return TRUE, and report its issue itself.
This commit is contained in:
parent
e2d8096cb7
commit
1c2c0e63c2
1 changed files with 8 additions and 3 deletions
|
@ -895,9 +895,14 @@ get_position (GstValidateScenario * scenario)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (scenario, "Executing %" GST_PTR_FORMAT
|
GST_DEBUG_OBJECT (scenario, "Executing %" GST_PTR_FORMAT
|
||||||
" at %" GST_TIME_FORMAT, act->structure, GST_TIME_ARGS (position));
|
" at %" GST_TIME_FORMAT, act->structure, GST_TIME_ARGS (position));
|
||||||
if (!type->execute (scenario, act))
|
if (!type->execute (scenario, act)) {
|
||||||
GST_WARNING_OBJECT (scenario, "Could not execute %" GST_PTR_FORMAT,
|
gchar *str = gst_structure_to_string (act->structure);
|
||||||
act->structure);
|
|
||||||
|
GST_VALIDATE_REPORT (scenario,
|
||||||
|
SCENARIO_ACTION_EXECUTION_ERROR, "Could not execute %s", str);
|
||||||
|
|
||||||
|
g_free (str);
|
||||||
|
}
|
||||||
|
|
||||||
if (act->repeat > 0) {
|
if (act->repeat > 0) {
|
||||||
act->repeat--;
|
act->repeat--;
|
||||||
|
|
Loading…
Reference in a new issue