Commit 9bbf387d authored by Michael Pyne's avatar Michael Pyne
Browse files

Use dynamic_cast<> instead of static_cast<> for TagLib AttachedPictureFrames.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=810969
parent d4fdfa5f
......@@ -269,8 +269,11 @@ QPixmap CoverInfo::pixmap(CoverSize size) const
if(frames.size() != 1) {
ID3v2::FrameList::Iterator it = frames.begin();
for(; it != frames.end(); ++it) {
// This must be dynamic_cast<>, TagLib will return UnknownFrame in APIC for
// encrypted frames.
ID3v2::AttachedPictureFrame *frame =
static_cast<ID3v2::AttachedPictureFrame *>(*it);
dynamic_cast<ID3v2::AttachedPictureFrame *>(*it);
// Both thumbnail and full size should use FrontCover, as
// FileIcon may be too small even for thumbnail.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment