summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-06-12 10:10:55 (GMT)
committerThibault Saunier <tsaunier@gnome.org>2015-06-12 10:42:42 (GMT)
commit06cca8a5b3d1ceae964f8f900445dca0a5b2f681 (patch)
tree3f75dc76dff73cd28ad05f1ef1c0ca11311b7cc1
parent3a1facdb452121aaa966e4672f6f81be9ff54a2f (diff)
downloadgst-devtools-06cca8a5b3d1ceae964f8f900445dca0a5b2f681.tar.gz
gst-devtools-06cca8a5b3d1ceae964f8f900445dca0a5b2f681.tar.xz
validate:ssim: Make position reporting parseable by the launcher
-rw-r--r--validate/gst-libs/gst/video/gstvalidatessim.c8
-rw-r--r--validate/plugins/ssim/gstvalidatessim.c8
2 files changed, 9 insertions, 7 deletions
diff --git a/validate/gst-libs/gst/video/gstvalidatessim.c b/validate/gst-libs/gst/video/gstvalidatessim.c
index 3fba67b..1a63c23 100644
--- a/validate/gst-libs/gst/video/gstvalidatessim.c
+++ b/validate/gst-libs/gst/video/gstvalidatessim.c
@@ -774,9 +774,11 @@ _check_directory (GstValidateSsim * self, const gchar * ref_dir,
}
gst_validate_printf (NULL,
- "<position: %s avg: %f min: %f (Passed: %d failed: %d, %d not found)>\r",
- g_file_info_get_display_name (info), *mean, *lowest,
- nfiles, nfailures, nnotfound);
+ "<position: %s duration: %" GST_TIME_FORMAT
+ " avg: %f min: %f (Passed: %d failed: %d, %d not found)/>\r",
+ g_file_info_get_display_name (info),
+ GST_TIME_ARGS (GST_CLOCK_TIME_NONE),
+ *mean, *lowest, nfiles, nfailures, nnotfound);
g_free (compared_file);
g_free (ref_file);
diff --git a/validate/plugins/ssim/gstvalidatessim.c b/validate/plugins/ssim/gstvalidatessim.c
index 91420f0..3442c1c 100644
--- a/validate/plugins/ssim/gstvalidatessim.c
+++ b/validate/plugins/ssim/gstvalidatessim.c
@@ -247,10 +247,10 @@ runner_stopping (GstValidateRunner * runner, ValidateSsimOverride * self)
total_avg += mssim;
gst_validate_printf (NULL,
- "<position: %" GST_TIME_FORMAT
- " %d / %d avg: %f min: %f (Passed: %d failed: %d)>\r",
- GST_TIME_ARGS (frame->position), i + 1, nfiles, mssim, lowest, npassed,
- nfailures);
+ "<position: %" GST_TIME_FORMAT " duration: %" GST_TIME_FORMAT
+ " %d / %d avg: %f min: %f (Passed: %d failed: %d)/>\r",
+ GST_TIME_ARGS (frame->position), GST_TIME_ARGS (GST_CLOCK_TIME_NONE),
+ i + 1, nfiles, mssim, lowest, npassed, nfailures);
g_free (bname);
}