summaryrefslogtreecommitdiff
path: root/plugins/mpgmad/mpgmad.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-16 21:27:08 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-16 21:27:08 +0200
commit6d505b25848c8db7363e54a6902aebc859f53bc7 (patch)
treeea8bd4b5d748f61c838214de550997d734c95aec /plugins/mpgmad/mpgmad.c
parent743cf8e3a236a18080de2fb9467185d54e60afe4 (diff)
gapless playback 2nd iteration - sample-accurate seeking on flac and ape
Diffstat (limited to 'plugins/mpgmad/mpgmad.c')
-rw-r--r--plugins/mpgmad/mpgmad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index 74847f37..c083b2c8 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -952,7 +952,8 @@ cmp3_insert (DB_playItem_t *after, const char *fname) {
break;
}
}
- DB_playItem_t *cue_after = deadbeef->pl_insert_cue (after, fname, &plugin, ftype, buffer.duration);
+ // FIXME! bad numsamples passed to cue
+ DB_playItem_t *cue_after = deadbeef->pl_insert_cue (after, fname, &plugin, ftype, buffer.duration*buffer.samplerate, buffer.samplerate);
if (cue_after) {
fclose (fp);
return cue_after;