From b1242b8a41e1053547e5e9e5069b5e09b3eacb28 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 11 Mar 2014 07:18:22 +0000 Subject: 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 --- src/plugins/Input/mad/replaygainreader.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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()); } -- cgit v1.2.3-13-gbd6f