validate:scenario: Do not consider action with 'on-message' as on addition
authorThibault Saunier <tsaunier@igalia.com>
Thu, 23 Apr 2020 01:13:06 +0000 (21:13 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 23 Apr 2020 23:57:54 +0000 (19:57 -0400)
validate/gst/validate/gst-validate-scenario.c

index 491302e7cf8b8537710f4556875ebafba4a3d637..04a563bc7f3695e03c645250c5bb93b78a677214 100644 (file)
@@ -1947,7 +1947,8 @@ _fill_action (GstValidateScenario * scenario, GstValidateAction * action,
     GstValidateActionType *type = _find_action_type (action->type);
     gboolean 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)
       can_execute_on_addition = FALSE;