aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/music/tags/TagLoaderTagLib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/music/tags/TagLoaderTagLib.cpp b/xbmc/music/tags/TagLoaderTagLib.cpp
index 6e7fada382..d4813dafeb 100644
--- a/xbmc/music/tags/TagLoaderTagLib.cpp
+++ b/xbmc/music/tags/TagLoaderTagLib.cpp
@@ -397,8 +397,8 @@ bool CTagLoaderTagLib::ParseTag(ID3v2::Tag *id3v2, EmbeddedArt *art, MUSIC_INFO:
// Loop through any UFID frames and set them
for (ID3v2::FrameList::ConstIterator ut = it->second.begin(); ut != it->second.end(); ++ut)
{
- auto ufid = reinterpret_cast<ID3v2::UniqueFileIdentifierFrame*> (*ut);
- if (ufid->owner() == "http://musicbrainz.org")
+ auto ufid = dynamic_cast<ID3v2::UniqueFileIdentifierFrame*> (*ut);
+ if (ufid && ufid->owner() == "http://musicbrainz.org")
{
// MusicBrainz pads with a \0, but the spec requires binary, be cautious
char cUfid[64];