Fix ISimpleTransform.

This commit is contained in:
Nikolai Kochetov 2019-04-08 14:28:38 +03:00
parent fa5bc611ae
commit ebbfd4994f

View File

@ -32,7 +32,6 @@ ISimpleTransform::Status ISimpleTransform::prepare()
if (transformed)
{
output.push(std::move(current_chunk));
has_input = false;
transformed = false;
}
@ -72,6 +71,7 @@ ISimpleTransform::Status ISimpleTransform::prepare()
void ISimpleTransform::work()
{
transform(current_chunk);
has_input = false;
if (!skip_empty_chunks || current_chunk)
transformed = true;