Commit 935ce7b6 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Fixed bug: The information (bitrate, length, etc. ) is often missing if an...

Fixed bug: The information (bitrate, length, etc. ) is often missing if an ID3v2.3 tag contains a picture and id3lib is used
parent 19f653ae
......@@ -1118,7 +1118,8 @@ void Mp3File::getDetailInfo(DetailInfo& info) const
const Mp3_Headerinfo* headerInfo = 0;
if (m_tagV1) {
headerInfo = m_tagV1->GetMp3HeaderInfo();
} else if (m_tagV2) {
}
if (!headerInfo && m_tagV2) {
headerInfo = m_tagV2->GetMp3HeaderInfo();
}
if (headerInfo) {
......@@ -1193,7 +1194,8 @@ unsigned Mp3File::getDuration() const
const Mp3_Headerinfo* info = NULL;
if (m_tagV1) {
info = m_tagV1->GetMp3HeaderInfo();
} else if (m_tagV2) {
}
if (!info && m_tagV2) {
info = m_tagV2->GetMp3HeaderInfo();
}
if (info && info->time > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment