copy fix over from 4.x branch

pull/2/head
weidai 2003-05-27 07:08:11 +00:00
parent 1a1fca3f87
commit 2f50e8eac9
1 changed files with 2 additions and 3 deletions

View File

@ -303,9 +303,6 @@ void Inflator::ProcessInput(bool flush)
{ {
while (true) while (true)
{ {
if (m_inQueue.IsEmpty())
return;
switch (m_state) switch (m_state)
{ {
case PRE_STREAM: case PRE_STREAM:
@ -337,6 +334,8 @@ void Inflator::ProcessInput(bool flush)
ProcessPoststreamTail(); ProcessPoststreamTail();
m_state = m_repeat ? PRE_STREAM : AFTER_END; m_state = m_repeat ? PRE_STREAM : AFTER_END;
Output(0, NULL, 0, GetAutoSignalPropagation(), true); // TODO: non-blocking Output(0, NULL, 0, GetAutoSignalPropagation(), true); // TODO: non-blocking
if (m_inQueue.IsEmpty())
return;
break; break;
case AFTER_END: case AFTER_END:
m_inQueue.TransferTo(*AttachedTransformation()); m_inQueue.TransferTo(*AttachedTransformation());