audiobuffersplit: Remove unneeded buffer_clip wrapper

This is just a small cleanup noticed while reading.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2544>
This commit is contained in:
Nicolas Dufresne 2021-09-22 14:17:35 -04:00 committed by GStreamer Marge Bot
parent d5e94da30c
commit eb9511646d

View file

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