Checking Tag Availability
Roustam Ghizdatov
rustahm at gmail.com
Fri Oct 8 06:51:43 CEST 2010
hello,
first of all, i'd like to express my deepest gratitude to the
developers of TagLib. i'm trying to use it in my application and have
a question for that matter.
TagLib::MPEG::File mpegFile(fileName, true, TagLib::AudioProperties::Accurate);
if (mpegFile.ID3v2Tag()) { ... }
the condition in the above code always returns true even if there's no
ID3v2 tag. so, i have to check FrameList instead:
TagLib::ID3v2::FrameList frameList = mpegFile.ID3v2Tag()->frameList();
if (!frameList.isEmpty()) { ... }
is this a feature or a bug?
thank you,
Roustam
More information about the taglib-devel
mailing list