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