CBaseDec::GetMetaDataBase - fix segfault on scroll and any file is played

This commit is contained in:
Jacek Jendrzej
2013-05-23 14:20:06 +02:00
parent b1c7c7a34c
commit 0c68a37b70

View File

@@ -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 )