tags..

Lukáš Lalinský lalinsky at gmail.com
Wed Aug 17 05:55:50 UTC 2011


2011/8/17 Kyle <gonemad at gmail.com>:
>     ID3v2::AttachedPictureFrame *f = static_cast<ID3v2::AttachedPictureFrame
> *>(l.front());

It's better to use dynamic_cast here, because the result doesn't
necessarily have to be ID3v2::AttachedPictureFrame. It can be
ID3v2::UnknownFrame, in case the frame was compressed or encrypted and
TagLib was not compiled with zlib.

Lukas


More information about the taglib-devel mailing list