diff options
author | mathbunnyru <mathbunnyru@gmail.com> | 2016-11-24 02:02:38 +0300 |
---|---|---|
committer | mathbunnyru <mathbunnyru@gmail.com> | 2016-11-24 02:05:19 +0300 |
commit | 5e1d9fad31b65bd798381b41be7268dea919a920 (patch) | |
tree | 86bcce245e34291361cabb446a830554f48ea22b /taglib/mp4 | |
parent | eff28c55bf6cc3437dcfbc96449e3d2904370a74 (diff) |
Small fixes
Diffstat (limited to 'taglib/mp4')
-rw-r--r-- | taglib/mp4/mp4tag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/taglib/mp4/mp4tag.cpp b/taglib/mp4/mp4tag.cpp index 0c2e5cbc..a7a473a2 100644 --- a/taglib/mp4/mp4tag.cpp +++ b/taglib/mp4/mp4tag.cpp @@ -948,10 +948,10 @@ PropertyMap MP4::Tag::setProperties(const PropertyMap &props) if(reverseKeyMap.contains(it->first)) { String name = reverseKeyMap[it->first]; if((it->first == "TRACKNUMBER" || it->first == "DISCNUMBER") && !it->second.isEmpty()) { - int first = 0, second = 0; StringList parts = StringList::split(it->second.front(), "/"); if(!parts.isEmpty()) { - first = parts[0].toInt(); + int first = parts[0].toInt(); + int second = 0; if(parts.size() > 1) { second = parts[1].toInt(); } |