validate: Ignore error msgs when executing next action

When processing an expected error msg, the test for if the next action
was a message would trigger and we'd never execute the next action
causing a timeout.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9118>
This commit is contained in:
Doug Nazar 2025-06-17 06:32:16 -04:00 committed by GStreamer Marge Bot
parent 1fb195e08e
commit 49a81965fc

View File

@ -3204,7 +3204,8 @@ execute_next_action_full (GstValidateScenario * scenario, GstMessage * message)
}
if (message) {
if (!_check_message_type (scenario, act, message))
if (!_check_message_type (scenario, act, message)
&& GST_MESSAGE_TYPE (message) != GST_MESSAGE_ERROR)
return G_SOURCE_CONTINUE;
} else if ((act && gst_structure_get_string (act->structure, "on-message") &&
!GST_CLOCK_TIME_IS_VALID (act->playback_time)) ||