mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
validate:scenario: Give pipeline position when failling on EOS
This commit is contained in:
parent
35003bc25b
commit
68573ae919
1 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue