pitch: Flush only if there are unprocessed samples
Otherwise we end up trying to flush before sample rate of SoundTouch is set https://bugzilla.gnome.org/show_bug.cgi?id=796613
This commit is contained in:
parent
be6afc6a90
commit
68052a7bc3
@ -391,9 +391,11 @@ gst_pitch_flush_buffer (GstPitch * pitch, gboolean send)
|
|||||||
{
|
{
|
||||||
GstBuffer *buffer;
|
GstBuffer *buffer;
|
||||||
|
|
||||||
|
if (pitch->priv->st->numUnprocessedSamples() != 0) {
|
||||||
GST_DEBUG_OBJECT (pitch, "flushing buffer");
|
GST_DEBUG_OBJECT (pitch, "flushing buffer");
|
||||||
|
|
||||||
pitch->priv->st->flush ();
|
pitch->priv->st->flush ();
|
||||||
|
}
|
||||||
|
|
||||||
if (!send)
|
if (!send)
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user