Checking Tag Availability

Roustam Ghizdatov rustahm at gmail.com
Fri Oct 8 08:58:34 CEST 2010


yes, i certainly can, but the question was about ID3v2Tag. is this an
expected behavior? well, it's not if we believe this:
http://developer.kde.org/~wheeler/taglib/api/classTagLib_1_1MPEG_1_1File.html#ebe5029bca925e9ed7002b00244c1240.
so, i guess it's a bug. shall i report it?

On 10/8/10, Anthony Liu <quadamage at gmail.com> wrote:
> Hello. You can try the Taglib::Tag::isEmpty() function.
>
> On Fri, Oct 8, 2010 at 12:51 PM, Roustam Ghizdatov <rustahm at gmail.com>wrote:
>> 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
>> _______________________________________________
>> taglib-devel mailing list
>> taglib-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/taglib-devel
>>
> --
> Best Regards


More information about the taglib-devel mailing list