libs: audio: add a new gst_audio_buffer_truncate() function
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Fri, 18 May 2018 13:22:47 +0000 (16:22 +0300)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Thu, 12 Jul 2018 09:08:10 +0000 (12:08 +0300)
commitb33d70e97ff1679de5b9f85155693afe9912afd9
tree842dac44cf97868f3014032ae81bd2bbec3cca77
parentadf48c9d3bcb384da44a961f6e5eb4e8fad74d9b
libs: audio: add a new gst_audio_buffer_truncate() function

Essentially this moves the truncation logic out of gst_audio_buffer_clip()
so that it can be used in other places, like in audiorate.

https://bugzilla.gnome.org/show_bug.cgi?id=796740
gst-libs/gst/audio/audio.c
gst-libs/gst/audio/audio.h