From eb9511646d0af10f37d1569b075537889a252ed4 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 22 Sep 2021 14:17:35 -0400 Subject: [PATCH] audiobuffersplit: Remove unneeded buffer_clip wrapper This is just a small cleanup noticed while reading. Part-of: --- gst/audiobuffersplit/gstaudiobuffersplit.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gst/audiobuffersplit/gstaudiobuffersplit.c b/gst/audiobuffersplit/gstaudiobuffersplit.c index e1ea507a83..35d1d67e2f 100644 --- a/gst/audiobuffersplit/gstaudiobuffersplit.c +++ b/gst/audiobuffersplit/gstaudiobuffersplit.c @@ -662,13 +662,6 @@ gst_audio_buffer_split_handle_discont (GstAudioBufferSplit * self, return ret; } -static GstBuffer * -gst_audio_buffer_split_clip_buffer (GstAudioBufferSplit * self, - GstBuffer * buffer, const GstSegment * segment, gint rate, gint bpf) -{ - return gst_audio_buffer_clip (buffer, segment, rate, bpf); -} - static GstBuffer * gst_audio_buffer_split_clip_buffer_start_for_gapless (GstAudioBufferSplit * self, GstBuffer * buffer, gint rate, gint bpf) @@ -737,9 +730,7 @@ gst_audio_buffer_split_sink_chain (GstPad * pad, GstObject * parent, return GST_FLOW_NOT_NEGOTIATED; } - buffer = - gst_audio_buffer_split_clip_buffer (self, buffer, &self->in_segment, rate, - bpf); + buffer = gst_audio_buffer_clip (buffer, &self->in_segment, rate, bpf); if (!buffer) return GST_FLOW_OK;