From 8a82274bc46151a6b10fb621c3e2d5d12722a5e2 Mon Sep 17 00:00:00 2001 Message-Id: <8a82274bc46151a6b10fb621c3e2d5d12722a5e2.1714089770.git.mdw@distorted.org.uk> From: Mark Wooding Date: Tue, 3 Jun 2008 18:53:07 +0100 Subject: [PATCH] Restore track length in CGI Organization: Straylight/Edgeware From: Richard Kettlewell --- cgi/macros-disorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/macros-disorder.c b/cgi/macros-disorder.c index eff6313..88d1701 100644 --- a/cgi/macros-disorder.c +++ b/cgi/macros-disorder.c @@ -262,7 +262,7 @@ static int exp_length(int attribute((unused)) nargs, return -1; name = q->track; } - if(dcgi_client && disorder_length(dcgi_client, name, &length)) + if(dcgi_client && !disorder_length(dcgi_client, name, &length)) return sink_printf(output, "%ld:%02ld", length / 60, length % 60) < 0 ? -1 : 0; return sink_writes(output, " ") < 0 ? -1 : 0; -- [mdw]