removesilence: remove gst_remove_silence_reset()

No need to call gst_remove_silence_reset() in gst_remove_silence_init() because
vad_new() already calls this function. Since there are no more uses of
_silence_reset(), we can remove it altogether.
This commit is contained in:
Luis de Bethencourt 2015-05-08 14:20:44 +01:00
parent 7020154f1c
commit 6a71b91c6e

View file

@ -93,7 +93,6 @@ static void gst_remove_silence_get_property (GObject * object, guint prop_id,
static GstFlowReturn gst_remove_silence_transform_ip (GstBaseTransform * base,
GstBuffer * buf);
static void gst_remove_silence_finalize (GObject * obj);
static void gst_remove_silence_reset (GstRemoveSilence * filter);
/* GObject vmethod implementations */
@ -153,18 +152,6 @@ gst_remove_silence_init (GstRemoveSilence * filter)
GST_DEBUG ("Error initializing VAD !!");
return;
}
gst_remove_silence_reset (filter);
}
static void
gst_remove_silence_reset (GstRemoveSilence * filter)
{
GST_DEBUG ("Reseting VAD");
if (filter->vad) {
vad_reset (filter->vad);
}
GST_DEBUG ("VAD Reseted");
}
static void
@ -231,7 +218,6 @@ gst_remove_silence_transform_ip (GstBaseTransform * trans, GstBuffer * inbuf)
gst_buffer_unmap (inbuf, &map);
if (frame_type == VAD_SILENCE) {
GST_DEBUG ("Silence detected");
if (filter->remove) {