decoder/mad: move code to tag/MixRamp.cxx

This commit is contained in:
Max Kellermann
2014-09-24 20:31:54 +02:00
parent d82547acd3
commit 6c48aa5fae
4 changed files with 96 additions and 5 deletions

View File

@@ -26,6 +26,7 @@
#include "tag/TagRva2.hxx"
#include "tag/TagHandler.hxx"
#include "tag/ReplayGain.hxx"
#include "tag/MixRamp.hxx"
#include "CheckAudioFormat.hxx"
#include "util/StringUtil.hxx"
#include "util/ASCII.hxx"
@@ -303,11 +304,7 @@ parse_id3_mixramp(struct id3_tag *tag)
id3_ucs4_latin1duplicate(id3_field_getstring
(&frame->fields[2]));
if (StringEqualsCaseASCII(key, "mixramp_start")) {
result.SetStart(value);
} else if (StringEqualsCaseASCII(key, "mixramp_end")) {
result.SetEnd(value);
}
ParseMixRampTag(result, key, value);
free(key);
free(value);