From 0c68a37b7033dbe4d9c06948a87be809a6649917 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 23 May 2013 14:20:06 +0200 Subject: [PATCH] CBaseDec::GetMetaDataBase - fix segfault on scroll and any file is played --- src/driver/audiodec/basedec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/driver/audiodec/basedec.cpp b/src/driver/audiodec/basedec.cpp index 08dfed926..c38752464 100644 --- a/src/driver/audiodec/basedec.cpp +++ b/src/driver/audiodec/basedec.cpp @@ -191,7 +191,8 @@ bool CBaseDec::GetMetaDataBase(CAudiofile* const in, const bool nice) #ifdef ENABLE_FLAC else if (in->FileType == CFile::FILE_FLAC) { - Status = CFlacDec::getInstance()->GetMetaData(fp, nice, &in->MetaData); + CFlacDec FlacDec; + Status = FlacDec.GetMetaData(fp, nice, &in->MetaData); } #endif if ( fclose( fp ) == EOF )