Improved ID3 chapter parsing code from feedback given.

This commit is contained in:
Philip Simpson 2017-01-17 12:03:18 +10:30
parent 5153e9e977
commit f6ecaddc88

View file

@ -505,7 +505,7 @@ public final class Id3Decoder implements MetadataDecoder {
} }
if (frame instanceof TextInformationFrame) { if (frame instanceof TextInformationFrame) {
TextInformationFrame textFrame = (TextInformationFrame)frame; TextInformationFrame textFrame = (TextInformationFrame)frame;
if (textFrame.id != null && textFrame.id.equals("TIT2")) { if ("TIT2".equals(textFrame.id)) {
title = textFrame.description; title = textFrame.description;
} }
} }