diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-05 15:25:24 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-05 15:25:24 +0200 |
commit | cf8d0c3c2516a585d11dfe51661e0c72473d909f (patch) | |
tree | 8b7b5561f33018fb53edcac95e9be4aeaba0511d /plugins | |
parent | f730d37358aca84622b6585587751dbe89e4b194 (diff) |
added flac id3v2 skipping
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/flac/flac.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c index 3cf9dd8d..580ae209 100644 --- a/plugins/flac/flac.c +++ b/plugins/flac/flac.c @@ -103,6 +103,10 @@ cflac_init (DB_playItem_t *it) { if (!fp) { return -1; } + int skip = deadbeef->junk_get_leading_size (fp); + if (skip > 0) { + fseek (fp, skip, SEEK_SET); + } char sign[4]; if (fread (sign, 1, 4, fp) != 4) { fclose (fp); @@ -413,6 +417,11 @@ cflac_insert (DB_playItem_t *after, const char *fname) { if (!fp) { goto cflac_insert_fail; } + // skip id3 junk + int skip = deadbeef->junk_get_leading_size (fp); + if (skip > 0) { + fseek (fp, skip, SEEK_SET); + } char sign[4]; if (fread (sign, 1, 4, fp) != 4) { goto cflac_insert_fail; |