diff options
-rw-r--r-- | playlist.c | 2 | ||||
-rw-r--r-- | plugins/flac/flac.c | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -187,7 +187,7 @@ pl_process_cue_track (playItem_t *after, const char *fname, playItem_t **prev, c return after; } (*prev)->endsample = (prevtime * samplerate) - 1; - trace ("calc endsample=%d, timeend=%f, samplerate=%d\n", (*prev)->endsample, (*prev)->timeend, samplerate); + trace ("calc endsample=%d, prevtime=%f, samplerate=%d\n", (*prev)->endsample, prevtime, samplerate); (*prev)->duration = (float)((*prev)->endsample - (*prev)->startsample + 1) / samplerate; } // non-compliant hack to handle tracks which only store pregap info diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c index 2e384e51..8622743a 100644 --- a/plugins/flac/flac.c +++ b/plugins/flac/flac.c @@ -426,8 +426,6 @@ cflac_insert (DB_playItem_t *after, const char *fname) { // try external cue DB_playItem_t *cue_after = deadbeef->pl_insert_cue (after, fname, &plugin, "flac", cb.totalsamples, cb.samplerate); if (cue_after) { - cue_after->endsample = cb.totalsamples-1; - cue_after->duration = (cue_after->endsample - cue_after->startsample+1) * cb.samplerate; return cue_after; } decoder = FLAC__stream_decoder_new(); |