From 68573ae919c027237cc6a369bb35b0aba1b5b791 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 31 Jan 2019 23:43:28 -0300 Subject: [PATCH] validate:scenario: Give pipeline position when failling on EOS --- validate/gst/validate/gst-validate-scenario.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/gst-validate-scenario.c b/validate/gst/validate/gst-validate-scenario.c index e375df5333..654cbe83e9 100644 --- a/validate/gst/validate/gst-validate-scenario.c +++ b/validate/gst/validate/gst-validate-scenario.c @@ -2760,9 +2760,15 @@ message_cb (GstBus * bus, GstMessage * message, GstValidateScenario * scenario) scenario->priv->interlaced_actions = NULL; scenario->priv->on_addition_actions = NULL; - if (nb_actions > 0) + + if (nb_actions > 0) { + GstClockTime position = GST_CLOCK_TIME_NONE; + + _get_position (scenario, NULL, &position); GST_VALIDATE_REPORT (scenario, SCENARIO_NOT_ENDED, - "%i actions were not executed: %s", nb_actions, actions); + "%i actions were not executed: %s (position: %" GST_TIME_FORMAT + ")", nb_actions, actions, GST_TIME_ARGS (position)); + } g_free (actions); } SCENARIO_UNLOCK (scenario);