chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
04c0301
)
plugins/tracklength-gstreamer.c: Use `GST_SECOND' instead of `1000...'.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 13 Jul 2018 10:55:02 +0000
(11:55 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 13 Jul 2018 10:55:02 +0000
(11:55 +0100)
Honestly I'm rather surprised that I typed the right number of zeroes.
plugins/tracklength-gstreamer.c
patch
|
blob
|
blame
|
history
diff --git
a/plugins/tracklength-gstreamer.c
b/plugins/tracklength-gstreamer.c
index 0d37a097094f7181fd5734396259503fe565fc30..7297eae0ff3c0f06fb7f4c7dba97b2f1a048d775 100644
(file)
--- a/
plugins/tracklength-gstreamer.c
+++ b/
plugins/tracklength-gstreamer.c
@@
-72,7
+72,7
@@
long disorder_tracklength(const char UNUSED *track, const char *path) {
switch(gst_discoverer_info_get_result(info)) {
case GST_DISCOVERER_OK:
t = gst_discoverer_info_get_duration(info);
- length = (t +
500000000)/1000000000
;
+ length = (t +
GST_SECOND/2)/GST_SECOND
;
break;
case GST_DISCOVERER_TIMEOUT:
disorder_info("discovery timed out probing `%s'", path);