validate:scenario: Give pipeline position when failling on EOS
authorThibault Saunier <tsaunier@igalia.com>
Fri, 1 Feb 2019 02:43:28 +0000 (23:43 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 1 Feb 2019 02:47:11 +0000 (23:47 -0300)
validate/gst/validate/gst-validate-scenario.c

index e375df5..654cbe8 100644 (file)
@@ -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);