ah cool thanks for the tip<br><br><div class="gmail_quote">2011/8/17 Lukáš Lalinský <span dir="ltr"><<a href="mailto:lalinsky@gmail.com">lalinsky@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/8/17 Kyle <<a href="mailto:gonemad@gmail.com">gonemad@gmail.com</a>>:<br>
<div class="im">>     ID3v2::AttachedPictureFrame *f = static_cast<ID3v2::AttachedPictureFrame<br>
> *>(l.front());<br>
<br>
</div>It's better to use dynamic_cast here, because the result doesn't<br>
necessarily have to be ID3v2::AttachedPictureFrame. It can be<br>
ID3v2::UnknownFrame, in case the frame was compressed or encrypted and<br>
TagLib was not compiled with zlib.<br>
<br>
Lukas<br>
<div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-Kyle<br>