aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-24 21:35:03 +0200
committerMax Kellermann <max@duempel.org>2013-10-24 21:35:05 +0200
commit645cb5833d3a4f1143bb75cea828f2bde41414a5 (patch)
tree8ccba3e64fc15f71790dc7b4ad41304f62f3ad6c
parentdc328e0c4ad0dc6b8c53f6da2e0e85bfcefd02c9 (diff)
downloadmpd-645cb5833d3a4f1143bb75cea828f2bde41414a5.tar.gz
mpd-645cb5833d3a4f1143bb75cea828f2bde41414a5.tar.xz
mpd-645cb5833d3a4f1143bb75cea828f2bde41414a5.zip
test/run_decoder: print the song duration
-rw-r--r--test/run_decoder.cxx7
1 files 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;
}