diff options
author | waker <wakeroid@gmail.com> | 2009-09-03 20:00:47 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-09-03 20:01:59 +0200 |
commit | 2094158f4c189644761df550b3f89536ec755c73 (patch) | |
tree | 263a9f7d5ee8980fd580211e31bd917989d9b459 /plugins | |
parent | f8adccefd9183f6ae712eace9d3755e422bf1299 (diff) |
simplified cue loading API ; added more informative mpeg filetypes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ape/ape.c | 4 | ||||
-rw-r--r-- | plugins/demac/demac.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/plugins/ape/ape.c b/plugins/ape/ape.c index 87045082..e4fed9ac 100644 --- a/plugins/ape/ape.c +++ b/plugins/ape/ape.c @@ -125,11 +125,9 @@ ape_insert (DB_playItem_t *after, const char *fname) { ape_decompress_get_info_data (dec, APE_INFO_WAVEFORMATEX, &wfe); float duration = ape_decompress_get_info_int (dec, APE_DECOMPRESS_TOTAL_BLOCKS) / (float)wfe.nSamplesPerSec; - DB_playItem_t *it = deadbeef->pl_insert_cue (after, fname, &plugin, "APE"); + DB_playItem_t *it = deadbeef->pl_insert_cue (after, fname, &plugin, "APE", duration); if (it) { ape_decompress_destroy (dec); - it->timeend = duration; - it->duration = it->timeend - it->timestart; return it; } diff --git a/plugins/demac/demac.c b/plugins/demac/demac.c index 024e7194..5fb43313 100644 --- a/plugins/demac/demac.c +++ b/plugins/demac/demac.c @@ -551,11 +551,9 @@ demac_insert (DB_playItem_t *after, const char *fname) { } float duration = ape_ctx.totalsamples / (float)ape_ctx.samplerate; - DB_playItem_t *it = deadbeef->pl_insert_cue (after, fname, &plugin, "APE"); + DB_playItem_t *it = deadbeef->pl_insert_cue (after, fname, &plugin, "APE", duration); if (it) { fclose (fp); - it->timeend = duration; - it->duration = it->timeend - it->timestart; return it; } |