Hello. You can try the Taglib::Tag::isEmpty() function.<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: sans-serif;"><table class="memname" style="font-weight: bold;">
<tbody><tr><td class="memname" style="width: auto;"><br></td><td style="width: auto;"><br></td><td class="paramname" style="width: auto;"><br></td><td style="width: auto;"><br></td></tr></tbody></table></span></span><br><div class="gmail_quote">
On Fri, Oct 8, 2010 at 12:51 PM, Roustam Ghizdatov <span dir="ltr">&lt;<a href="mailto:rustahm@gmail.com">rustahm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hello,<br>
<br>
first of all, i&#39;d like to express my deepest gratitude to the<br>
developers of TagLib. i&#39;m trying to use it in my application and have<br>
a question for that matter.<br>
<br>
TagLib::MPEG::File mpegFile(fileName, true, TagLib::AudioProperties::Accurate);<br>
if (mpegFile.ID3v2Tag()) { ... }<br>
<br>
the condition in the above code always returns true even if there&#39;s no<br>
ID3v2 tag. so, i have to check FrameList instead:<br>
<br>
TagLib::ID3v2::FrameList frameList = mpegFile.ID3v2Tag()-&gt;frameList();<br>
if (!frameList.isEmpty()) { ... }<br>
<br>
is this a feature or a bug?<br>
<br>
thank you,<br>
<br>
Roustam<br>
_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>