mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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:
parent
9e981ed503
commit
5f020be6cd
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue