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:
Kipp Cannon 2016-04-27 18:08:46 +09:00 committed by Sebastian Dröge
parent 59d7f9c62e
commit f7a31a79f4
2 changed files with 4 additions and 3 deletions

View file

@ -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;

View file

@ -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);