Bug in recent commit: "inited" was set to false too soon, last frame was dropped

This commit is contained in:
Grigory Chudov
2013-04-07 22:57:18 -04:00
parent f7fee0139c
commit 91d86a1f49

View File

@@ -273,7 +273,6 @@ namespace CUETools.Codecs.FLACCL
{
if (inited)
{
inited = false;
int nFrames = samplesInBuffer / m_blockSize;
if (nFrames > 0)
do_output_frames(nFrames);
@@ -338,7 +337,6 @@ namespace CUETools.Codecs.FLACCL
}
}
_IO.Close();
inited = false;
}
}