pitch: Fix single input buffer followed by EOS
The flush function immediately returned when pitch->next_buffer_offset
This is clearly wrong, as next_buffer_offset can be 0 when a single
input buffer has been received, and no output buffer has been produced
before receiving EOS.
Simply remove that condition.
diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc
index b41e665..e70e298 100644
@@ -393,9 +393,6 @@
GST_DEBUG_OBJECT (pitch, "flushing buffer");
- if (pitch->next_buffer_offset == 0)
- return GST_FLOW_OK;