mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 23:14:46 +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
|
||||
*/
|
||||
GstBuffer *
|
||||
gst_audio_buffer_clip (GstBuffer * buffer, GstSegment * segment, gint rate,
|
||||
gint bpf)
|
||||
gst_audio_buffer_clip (GstBuffer * buffer, const GstSegment * segment,
|
||||
gint rate, gint bpf)
|
||||
{
|
||||
GstBuffer *ret;
|
||||
GstClockTime timestamp = GST_CLOCK_TIME_NONE, duration = GST_CLOCK_TIME_NONE;
|
||||
|
|
|
@ -88,7 +88,8 @@ G_BEGIN_DECLS
|
|||
* handling
|
||||
*/
|
||||
|
||||
GstBuffer * gst_audio_buffer_clip (GstBuffer *buffer, GstSegment *segment,
|
||||
GstBuffer * gst_audio_buffer_clip (GstBuffer *buffer,
|
||||
const GstSegment *segment,
|
||||
gint rate, gint bpf);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue