From 699ae4cd4abb386706229e60de7beb93edf07867 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 20 Jul 2009 09:27:01 +0000 Subject: removed unused code git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1051 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/flac/decoder_flac.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/plugins/Input/flac/decoder_flac.cpp') diff --git a/src/plugins/Input/flac/decoder_flac.cpp b/src/plugins/Input/flac/decoder_flac.cpp index fa92ed722..bd1a706b8 100644 --- a/src/plugins/Input/flac/decoder_flac.cpp +++ b/src/plugins/Input/flac/decoder_flac.cpp @@ -263,9 +263,6 @@ DecoderFLAC::DecoderFLAC(QObject *parent, DecoderFactory *d, QIODevice *i, Outpu inited = FALSE; m_data = 0; m_path = path; - - m_offset = 0; - m_length = 0; m_data = new flac_data; m_data->decoder = NULL; data()->input = i; @@ -312,8 +309,11 @@ bool DecoderFLAC::initialize() m_cue_parser = new CUEParser(xiph_comment->fieldListMap()["CUESHEET"].toString() .toCString(TRUE), p); int track = m_path.section("#", -1).toInt(); - m_offset = m_cue_parser->offset(track); - m_length = m_cue_parser->length(track); + if(track > m_cue_parser->count()) + { + qWarning("DecoderFLAC: invalid cuesheet xiph comment"); + return FALSE; + } data()->input = new QFile(p); //send metadata QMap metaData = m_cue_parser->info(track)->metaData(); -- cgit v1.2.3-13-gbd6f