mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
audio: Add const to segment parameter of gst_audio_buffer_clip()
e.g., allows this to be used with the reference retrieved by gst_event_parse_segment(). https://bugzilla.gnome.org/show_bug.cgi?id=765663
This commit is contained in:
parent
59d7f9c62e
commit
f7a31a79f4
2 changed files with 4 additions and 3 deletions
|
@ -75,8 +75,8 @@ ensure_debug_category (void)
|
||||||
* is not clipped
|
* is not clipped
|
||||||
*/
|
*/
|
||||||
GstBuffer *
|
GstBuffer *
|
||||||
gst_audio_buffer_clip (GstBuffer * buffer, GstSegment * segment, gint rate,
|
gst_audio_buffer_clip (GstBuffer * buffer, const GstSegment * segment,
|
||||||
gint bpf)
|
gint rate, gint bpf)
|
||||||
{
|
{
|
||||||
GstBuffer *ret;
|
GstBuffer *ret;
|
||||||
GstClockTime timestamp = GST_CLOCK_TIME_NONE, duration = GST_CLOCK_TIME_NONE;
|
GstClockTime timestamp = GST_CLOCK_TIME_NONE, duration = GST_CLOCK_TIME_NONE;
|
||||||
|
|
|
@ -88,7 +88,8 @@ G_BEGIN_DECLS
|
||||||
* handling
|
* handling
|
||||||
*/
|
*/
|
||||||
|
|
||||||
GstBuffer * gst_audio_buffer_clip (GstBuffer *buffer, GstSegment *segment,
|
GstBuffer * gst_audio_buffer_clip (GstBuffer *buffer,
|
||||||
|
const GstSegment *segment,
|
||||||
gint rate, gint bpf);
|
gint rate, gint bpf);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue