summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2016-01-26 09:57:03 +0100
committerWim Taymans <wtaymans@redhat.com>2016-03-28 13:25:51 +0200
commit05eb109c0ddf81467883b519044d8a2acc3d6131 (patch)
tree356dc66e859351a62aeb2658734ba4f090327052 /gst
parent8dfb3ffb99f384c2c30fa1065368621e2cb7cfe3 (diff)
audio-resampler: handle filter length changes
Update the buffer with history samples when the filter length changes because of an update of the parameters or sample rates.
Diffstat (limited to 'gst')
-rw-r--r--gst/audioresample/gstaudioresample.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index 45d4cdf10..416dda38b 100644
--- a/gst/audioresample/gstaudioresample.c
+++ b/gst/audioresample/gstaudioresample.c
@@ -777,19 +777,17 @@ gst_audio_resample_process (GstAudioResample * resample, GstBuffer * inbuf,
}
{
/* process */
- {
- gpointer in[1], out[1];
- GstAudioConverterFlags flags;
-
- flags = 0;
- if (inbuf_writable)
- flags |= GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE;
-
- in[0] = in_map.data;
- out[0] = out_map.data;
- gst_audio_converter_samples (resample->converter, flags, in, in_len,
- out, out_len);
- }
+ gpointer in[1], out[1];
+ GstAudioConverterFlags flags;
+
+ flags = 0;
+ if (inbuf_writable)
+ flags |= GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE;
+
+ in[0] = in_map.data;
+ out[0] = out_map.data;
+ gst_audio_converter_samples (resample->converter, flags, in, in_len,
+ out, out_len);
}
}