diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-11 07:18:22 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-11 07:18:22 +0000 |
| commit | b1242b8a41e1053547e5e9e5069b5e09b3eacb28 (patch) | |
| tree | 04327661a4b1e58427dbff308935ba338e445925 /src | |
| parent | c38b0cc53f4576b822c0008859761d7f8315e083 (diff) | |
| download | qmmp-b1242b8a41e1053547e5e9e5069b5e09b3eacb28.tar.gz qmmp-b1242b8a41e1053547e5e9e5069b5e09b3eacb28.tar.bz2 qmmp-b1242b8a41e1053547e5e9e5069b5e09b3eacb28.zip | |
mad: fixed possible segmentation fault
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4144 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/Input/mad/replaygainreader.cpp | 5 |
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()); } |
