summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-26 16:43:17 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-26 16:43:17 +0200
commit859a5adb43a05c84e5c6bec2e18f9946391f7c62 (patch)
tree455713123cad238a4bb1ba1e5b50c13e9c9f95fb /plugins/mpgmad
parentbab6c3996fbe77709a09693d3c53dca356f4e8b2 (diff)
changed mp3 tag priority to ape->id3v2->id3v1
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index 886c77c4..70de0e56 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -908,21 +908,15 @@ cmp3_insert (DB_playItem_t *after, const char *fname) {
it->decoder = &plugin;
it->fname = strdup (fname);
+ int apeerr = deadbeef->junk_read_ape (it, fp);
int v2err = deadbeef->junk_read_id3v2 (it, fp);
int v1err = deadbeef->junk_read_id3v1 (it, fp);
- if (v1err >= 0) {
- fseek (fp, -128, SEEK_END);
- }
- else {
- fseek (fp, 0, SEEK_END);
- }
- int apeerr = deadbeef->junk_read_ape (it, fp);
+ fclose (fp);
deadbeef->pl_add_meta (it, "title", NULL);
it->duration = buffer.duration;
it->filetype = ftype;
after = deadbeef->pl_insert_item (after, it);
- fclose (fp);
return after;
}