]> granicus.if.org Git - recode/commitdiff
task.c: slight simplification in perform_sequence
authorReuben Thomas <rrt@sc3d.org>
Tue, 30 Jan 2018 21:26:00 +0000 (21:26 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 30 Jan 2018 21:26:00 +0000 (21:26 +0000)
Now does not need to mention RECODE_SEQUENCE_IN_MEMORY.

src/task.c

index a4fb71208aa6a950d5136c38c9181b00c90a9c58..487ea65e712be649827691d27985bd82cdd4028d 100644 (file)
@@ -280,11 +280,8 @@ perform_sequence (RECODE_TASK task, enum recode_sequence_strategy strategy)
 
       if (sequence_index + 1 < (unsigned)request->sequence_length)
        {
-          if (strategy == RECODE_SEQUENCE_IN_MEMORY)
-            {
-             subtask->output = output;
-             subtask->output.cursor = subtask->output.buffer;
-            }
+          subtask->output = output;
+          subtask->output.cursor = subtask->output.buffer;
 
 #if HAVE_PIPE
           if (strategy == RECODE_SEQUENCE_WITH_PIPE)