Checking Tag Availability

Anthony Liu quadamage at gmail.com
Fri Oct 8 08:29:51 CEST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20101008/0a9cd296/attachment.htm 


More information about the taglib-devel mailing list