validate:scenario: Do not consider action with 'on-message' as on addition

This commit is contained in:
Thibault Saunier 2020-04-22 21:13:06 -04:00
parent 2b32a68df1
commit 05815d4b4f

View file

@ -1947,7 +1947,8 @@ _fill_action (GstValidateScenario * scenario, GstValidateAction * action,
GstValidateActionType *type = _find_action_type (action->type); GstValidateActionType *type = _find_action_type (action->type);
gboolean can_execute_on_addition = gboolean can_execute_on_addition =
type->flags & GST_VALIDATE_ACTION_TYPE_CAN_EXECUTE_ON_ADDITION type->flags & GST_VALIDATE_ACTION_TYPE_CAN_EXECUTE_ON_ADDITION
&& !GST_CLOCK_TIME_IS_VALID (action->playback_time); && !GST_CLOCK_TIME_IS_VALID (action->playback_time)
&& !gst_structure_has_field (action->structure, "on-message");
if (needs_parsing) if (needs_parsing)
can_execute_on_addition = FALSE; can_execute_on_addition = FALSE;