pitch: Fix single input buffer followed by EOS
The flush function immediately returned when pitch->next_buffer_offset
was 0.
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.
https://bugzilla.gnome.org/show_bug.cgi?id=796603
diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc
index b41e665..e70e298 100644
--- a/ext/soundtouch/gstpitch.cc
+++ b/ext/soundtouch/gstpitch.cc
@@ -393,9 +393,6 @@
GST_DEBUG_OBJECT (pitch, "flushing buffer");
- if (pitch->next_buffer_offset == 0)
- return GST_FLOW_OK;
-
pitch->priv->st->flush ();
if (!send)
return GST_FLOW_OK;