mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
audiofx: fix pad_alloc
This commit is contained in:
parent
eb84592cad
commit
b121bb0ae9
1 changed files with 3 additions and 10 deletions
|
@ -666,16 +666,9 @@ gst_audio_fx_base_fir_filter_push_residue (GstAudioFXBaseFIRFilter * self)
|
||||||
g_free (out);
|
g_free (out);
|
||||||
}
|
}
|
||||||
|
|
||||||
res = gst_pad_alloc_buffer (GST_BASE_TRANSFORM_CAST (self)->srcpad,
|
outbuf = gst_buffer_new_and_alloc (outsize);
|
||||||
GST_BUFFER_OFFSET_NONE, outsize,
|
gst_buffer_set_caps (outbuf,
|
||||||
GST_PAD_CAPS (GST_BASE_TRANSFORM_CAST (self)->srcpad), &outbuf);
|
GST_PAD_CAPS (GST_BASE_TRANSFORM_CAST (self)->srcpad));
|
||||||
|
|
||||||
if (G_UNLIKELY (res != GST_FLOW_OK)) {
|
|
||||||
GST_WARNING_OBJECT (self, "failed allocating buffer of %d bytes",
|
|
||||||
outsize);
|
|
||||||
self->buffer_fill = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Convolve the residue with zeros to get the actual remaining data */
|
/* Convolve the residue with zeros to get the actual remaining data */
|
||||||
in = g_new0 (guint8, outsize);
|
in = g_new0 (guint8, outsize);
|
||||||
|
|
Loading…
Reference in a new issue