ID1v1: Allow conversion from int/string to position
This commit is contained in:
parent
221409fdcf
commit
38da0c796b
|
@ -174,7 +174,7 @@ set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
|
|||
set(META_APP_DESCRIPTION "C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags")
|
||||
set(META_VERSION_MAJOR 7)
|
||||
set(META_VERSION_MINOR 0)
|
||||
set(META_VERSION_PATCH 3)
|
||||
set(META_VERSION_PATCH 4)
|
||||
set(META_PUBLIC_SHARED_LIB_DEPENDS c++utilities)
|
||||
set(META_PUBLIC_STATIC_LIB_DEPENDS c++utilities_static)
|
||||
set(META_PRIVATE_COMPILE_DEFINITIONS LEGACY_API)
|
||||
|
|
|
@ -101,7 +101,7 @@ void Id3v1Tag::make(ostream &stream, Diagnostics &diag)
|
|||
buffer[1] = 0x0; // track nr
|
||||
buffer[2] = 0x0; // genre
|
||||
// track
|
||||
if (!m_trackPos.isEmpty() && m_trackPos.type() == TagDataType::PositionInSet) {
|
||||
if (!m_trackPos.isEmpty()) {
|
||||
try {
|
||||
buffer[1] = m_trackPos.toPositionInSet().position();
|
||||
} catch (const ConversionException &) {
|
||||
|
|
Loading…
Reference in New Issue