summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-08 10:39:29 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-08 10:39:29 +0200
commitc2dbadc6ec891f9bf0287698eab18dccc7f1b52d (patch)
treef727724a672e76fca807cbcb19964f3e94ab8c19 /playlist.c
parentce429b6a60046d8fd75fcb3973a63a4b284c96f8 (diff)
added duration calc to GME and FLAC
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 70e173d6..f7c9cf1b 100644
--- a/playlist.c
+++ b/playlist.c
@@ -199,6 +199,7 @@ ps_insert_cue (playItem_t *after, const char *cuename) {
}
if (prev) {
prev->timeend = tstart;
+ prev->duration = prev->timeend - prev->timestart;
// printf ("end time for prev track (%x): %f\n", prev, tstart);
}
// add this track