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
This commit is contained in:
Mathieu Duponchelle 2018-06-16 18:19:39 +02:00
parent 9e981ed503
commit 5f020be6cd

View file

@ -393,9 +393,6 @@ gst_pitch_flush_buffer (GstPitch * pitch, gboolean send)
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;