From: Thibault Saunier Date: Tue, 21 Apr 2020 19:48:20 +0000 (-0400) Subject: validate:scenario: Fix 'on-message' actions execution X-Git-Tag: 1.19.3~491^2~170 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58de8e533060f8e29b7a4c981471f84f30078311;p=platform%2Fupstream%2Fgstreamer.git validate:scenario: Fix 'on-message' actions execution Part-of: --- diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index a48dd1a..491302e 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -2,7 +2,7 @@ * * Copyright (C) 2013 Collabora Ltd. * Author: Thibault Saunier - * Copyright (C) 2018-2019 Igalia S.L + * Copyright (C) 2018-2020 Igalia S.L * * gst-validate-scenario.c - Validate Scenario class @@ -2135,7 +2135,9 @@ execute_next_action_full (GstValidateScenario * scenario, GstMessage * message) if (message) { if (!_check_message_type (scenario, act, message)) return G_SOURCE_CONTINUE; - } else if (!_check_position (scenario, act, &position, &rate)) { + } else if ((act && gst_structure_get_string (act->structure, "on-message") && + !GST_CLOCK_TIME_IS_VALID (act->playback_time)) || + (!_check_position (scenario, act, &position, &rate))) { return G_SOURCE_CONTINUE; }