validate: scenario: Avoid reporting issue with SCENARIO_LOCK taken

This might lead to deadlock and is not needed here

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5666>
This commit is contained in:
Thibault Saunier 2023-08-21 10:43:28 -04:00 committed by GStreamer Marge Bot
parent a56abe2c9d
commit a075264215

View file

@ -6513,9 +6513,13 @@ _execute_stop (GstValidateScenario * scenario, GstValidateAction * action)
GstClockTime position = GST_CLOCK_TIME_NONE; GstClockTime position = GST_CLOCK_TIME_NONE;
_get_position (scenario, NULL, &position); _get_position (scenario, NULL, &position);
SCENARIO_UNLOCK (scenario);
GST_VALIDATE_REPORT (scenario, SCENARIO_NOT_ENDED, GST_VALIDATE_REPORT (scenario, SCENARIO_NOT_ENDED,
"%i actions were not executed: %s (position: %" GST_TIME_FORMAT "%i actions were not executed: %s (position: %" GST_TIME_FORMAT
")", nb_actions, actions, GST_TIME_ARGS (position)); ")", nb_actions, actions, GST_TIME_ARGS (position));
SCENARIO_LOCK (scenario);
} }
g_free (actions); g_free (actions);
} }