diff options
author | waker <wakeroid@gmail.com> | 2012-08-21 21:45:59 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-08-21 21:46:33 +0200 |
commit | f376d81714066a06bcd87e8ce49886b8a9371fad (patch) | |
tree | 1e2912dd7a5b9dffd3d9374d3f845f415af2c25e /plugins/aac/aac.c | |
parent | d664351dc42900dce940477b9e5e325ceee930aa (diff) |
aac, alac: don't load binary cover art data as text
Diffstat (limited to 'plugins/aac/aac.c')
-rw-r--r-- | plugins/aac/aac.c | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c index 60b0fb2e..a363e5fa 100644 --- a/plugins/aac/aac.c +++ b/plugins/aac/aac.c @@ -1092,28 +1092,30 @@ aac_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)); + } + else if (!strcasecmp (key, "replaygain_album_gain")) { + deadbeef->pl_set_item_replaygain (it, DDB_REPLAYGAIN_ALBUMGAIN, atof (value)); } - if (!metainfo[i]) { - deadbeef->pl_add_meta (it, key, 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); + } } } } |