From 645cb5833d3a4f1143bb75cea828f2bde41414a5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Oct 2013 21:35:03 +0200 Subject: [PATCH] test/run_decoder: print the song duration --- test/run_decoder.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx index 1044856c2..4d7228be3 100644 --- a/test/run_decoder.cxx +++ b/test/run_decoder.cxx @@ -57,15 +57,16 @@ void decoder_initialized(Decoder &decoder, const AudioFormat audio_format, gcc_unused bool seekable, - gcc_unused float total_time) + float duration) { struct audio_format_string af_string; assert(!decoder.initialized); assert(audio_format.IsValid()); - g_printerr("audio_format=%s\n", - audio_format_to_string(audio_format, &af_string)); + g_printerr("audio_format=%s duration=%f\n", + audio_format_to_string(audio_format, &af_string), + duration); decoder.initialized = true; }