aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/mad/mpegmetadatamodel.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-10-17 11:03:03 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-10-17 11:03:03 +0000
commit5a63f3d2cdc0f011239b9e6acf7178da70461a10 (patch)
tree86a6499f22ca041ea944859ed77bb2b7eab44b26 /src/plugins/Input/mad/mpegmetadatamodel.cpp
parent3f249105c9cd0ced6d97d930f89f4135a352985b (diff)
downloadqmmp-5a63f3d2cdc0f011239b9e6acf7178da70461a10.tar.gz
qmmp-5a63f3d2cdc0f011239b9e6acf7178da70461a10.tar.bz2
qmmp-5a63f3d2cdc0f011239b9e6acf7178da70461a10.zip
mad: added id3v2-based replaygain tags support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3806 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/mad/mpegmetadatamodel.cpp')
-rw-r--r--src/plugins/Input/mad/mpegmetadatamodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Input/mad/mpegmetadatamodel.cpp b/src/plugins/Input/mad/mpegmetadatamodel.cpp
index c7a367fc8..0fb6d674a 100644
--- a/src/plugins/Input/mad/mpegmetadatamodel.cpp
+++ b/src/plugins/Input/mad/mpegmetadatamodel.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009 by Ilya Kotov *
+ * Copyright (C) 2009-2013 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -119,7 +119,7 @@ QPixmap MPEGMetaDataModel::cover()
for(TagLib::ID3v2::FrameList::Iterator it = frames.begin(); it != frames.end(); ++it)
{
- TagLib::ID3v2::AttachedPictureFrame *frame = static_cast<TagLib::ID3v2::AttachedPictureFrame *>(*it);
+ TagLib::ID3v2::AttachedPictureFrame *frame = dynamic_cast<TagLib::ID3v2::AttachedPictureFrame *>(*it);
if(frame && frame->type() == TagLib::ID3v2::AttachedPictureFrame::FrontCover)
{
QPixmap cover;