validate: Print current position even if we do not know the rate

That could cause gst-validate-launcher to wrongly concider tests
as timeout
This commit is contained in:
Thibault Saunier 2014-11-19 20:05:57 +01:00
parent 2be3c04b9b
commit 6300fb9602

View file

@ -193,16 +193,15 @@ print_position (GstValidateMonitor * monitor)
}
query = gst_query_new_segment (GST_FORMAT_DEFAULT);
if (gst_element_query (pipeline, query)) {
if (gst_element_query (pipeline, query))
gst_query_parse_segment (query, &rate, NULL, NULL, NULL);
gst_validate_printf (NULL,
"<position: %" GST_TIME_FORMAT " duration: %" GST_TIME_FORMAT
" speed: %f />\r", GST_TIME_ARGS (position), GST_TIME_ARGS (duration),
rate);
}
gst_query_unref (query);
gst_validate_printf (NULL,
"<position: %" GST_TIME_FORMAT " duration: %" GST_TIME_FORMAT
" speed: %f />\r", GST_TIME_ARGS (position), GST_TIME_ARGS (duration),
rate);
return TRUE;
}