summaryrefslogtreecommitdiff
path: root/plugins/alac
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-08-21 21:45:59 +0200
committerGravatar waker <wakeroid@gmail.com>2012-08-21 21:46:33 +0200
commitf376d81714066a06bcd87e8ce49886b8a9371fad (patch)
tree1e2912dd7a5b9dffd3d9374d3f845f415af2c25e /plugins/alac
parentd664351dc42900dce940477b9e5e325ceee930aa (diff)
aac, alac: don't load binary cover art data as text
Diffstat (limited to 'plugins/alac')
-rw-r--r--plugins/alac/alac_plugin.c44
1 files changed, 23 insertions, 21 deletions
diff --git a/plugins/alac/alac_plugin.c b/plugins/alac/alac_plugin.c
index c62292e9..69da1007 100644
--- a/plugins/alac/alac_plugin.c
+++ b/plugins/alac/alac_plugin.c
@@ -378,28 +378,30 @@ alacplug_load_tags (DB_playItem_t *it, mp4ff_t *mp4) {
int res = mp4ff_meta_get_by_index(mp4, t, &key, &value);
if (key && value) {
got_itunes_tags = 1;
- if (!strcasecmp (key, "replaygain_track_gain")) {
- deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_TRACKGAIN, atof (value));
- }
- else if (!strcasecmp (key, "replaygain_album_gain")) {
- deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_ALBUMGAIN, atof (value));
- }
- else if (!strcasecmp (key, "replaygain_track_peak")) {
- deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_TRACKPEAK, atof (value));
- }
- else if (!strcasecmp (key, "replaygain_album_peak")) {
- deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_ALBUMPEAK, atof (value));
- }
- else {
- int i;
- for (i = 0; metainfo[i]; i += 2) {
- if (!strcasecmp (metainfo[i], key)) {
- deadbeef->pl_add_meta (it, metainfo[i+1], value);
- break;
- }
+ if (strcasecmp (key, "cover")) {
+ if (!strcasecmp (key, "replaygain_track_gain")) {
+ deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_TRACKGAIN, atof (value));
}
- if (!metainfo[i]) {
- deadbeef->pl_add_meta (it, key, value);
+ else if (!strcasecmp (key, "replaygain_album_gain")) {
+ deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_ALBUMGAIN, atof (value));
+ }
+ else if (!strcasecmp (key, "replaygain_track_peak")) {
+ deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_TRACKPEAK, atof (value));
+ }
+ else if (!strcasecmp (key, "replaygain_album_peak")) {
+ deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_ALBUMPEAK, atof (value));
+ }
+ else {
+ int i;
+ for (i = 0; metainfo[i]; i += 2) {
+ if (!strcasecmp (metainfo[i], key)) {
+ deadbeef->pl_add_meta (it, metainfo[i+1], value);
+ break;
+ }
+ }
+ if (!metainfo[i]) {
+ deadbeef->pl_add_meta (it, key, value);
+ }
}
}
}