mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
audiorate: correctly eat empty and dummy buffers
This commit is contained in:
parent
775636e734
commit
133e1cdb56
1 changed files with 1 additions and 1 deletions
|
@ -672,10 +672,10 @@ gst_audio_rate_chain (GstPad * pad, GstBuffer * buf)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
send:
|
||||||
if (GST_BUFFER_SIZE (buf) == 0)
|
if (GST_BUFFER_SIZE (buf) == 0)
|
||||||
goto beach;
|
goto beach;
|
||||||
|
|
||||||
send:
|
|
||||||
/* Now calculate parameters for whichever buffer (either the original
|
/* Now calculate parameters for whichever buffer (either the original
|
||||||
* or truncated one) we're pushing. */
|
* or truncated one) we're pushing. */
|
||||||
GST_BUFFER_OFFSET (buf) = audiorate->next_offset;
|
GST_BUFFER_OFFSET (buf) = audiorate->next_offset;
|
||||||
|
|
Loading…
Reference in a new issue