summaryrefslogtreecommitdiffstats
path: root/gst/filter/gstlpwsinc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/filter/gstlpwsinc.c')
-rw-r--r--gst/filter/gstlpwsinc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/filter/gstlpwsinc.c b/gst/filter/gstlpwsinc.c
index d86aace1..3869553b 100644
--- a/gst/filter/gstlpwsinc.c
+++ b/gst/filter/gstlpwsinc.c
@@ -421,12 +421,13 @@ lpwsinc_build_kernel (GstLPWSinc * self)
}
/* set up the residue memory space */
- if (!self->residue)
+ if (!self->residue) {
self->residue =
g_new0 (gdouble, len * GST_AUDIO_FILTER (self)->format.channels);
+ self->residue_length = 0;
+ }
self->have_kernel = TRUE;
- self->residue_length = 0;
}
static void