aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Input/mad/replaygainreader.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/Input/mad/replaygainreader.cpp b/src/plugins/Input/mad/replaygainreader.cpp
index 569ad5fea..16f202acc 100644
--- a/src/plugins/Input/mad/replaygainreader.cpp
+++ b/src/plugins/Input/mad/replaygainreader.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009-2013 by Ilya Kotov *
+ * Copyright (C) 2009-2014 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -30,7 +30,8 @@
ReplayGainReader::ReplayGainReader(const QString &path)
{
TagLib::MPEG::File fileRef(path.toLocal8Bit().constData());
- readID3v2(fileRef.ID3v2Tag());
+ if(fileRef.ID3v2Tag())
+ readID3v2(fileRef.ID3v2Tag());
if(m_values.isEmpty() && fileRef.APETag())
readAPE(fileRef.APETag());
}