chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e194c23
)
Restore track length in CGI
author
Richard Kettlewell
<rjk@greenend.org.uk>
Tue, 3 Jun 2008 17:53:07 +0000
(18:53 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Tue, 3 Jun 2008 17:53:07 +0000
(18:53 +0100)
cgi/macros-disorder.c
patch
|
blob
|
blame
|
history
diff --git
a/cgi/macros-disorder.c
b/cgi/macros-disorder.c
index eff631325229ac98701516533d4b0e9b30835c6b..88d1701cc9545ae75d96095c1358a12f17c9ac5d 100644
(file)
--- 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;
}
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;
return sink_printf(output, "%ld:%02ld",
length / 60, length % 60) < 0 ? -1 : 0;
return sink_writes(output, " ") < 0 ? -1 : 0;