diff options
author | David Schleef <ds@schleef.org> | 2004-05-19 06:14:06 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-05-19 06:14:06 +0000 |
commit | a36c95cc072c018073cf1ac69a245394fb0933cc (patch) | |
tree | 592090b319d91326b7d39e90f6fc9cee1b9be937 /gst-libs/gst/resample/resample.h | |
parent | 96becbe402e9d23cdbc928889b35e363bbc6f421 (diff) | |
download | gst-plugins-bad-a36c95cc072c018073cf1ac69a245394fb0933cc.tar.gz gst-plugins-bad-a36c95cc072c018073cf1ac69a245394fb0933cc.tar.bz2 gst-plugins-bad-a36c95cc072c018073cf1ac69a245394fb0933cc.zip |
gst-libs/gst/resample/resample.c: Remove use of static temporary buffer. This code was obviously not supposed to las...
Original commit message from CVS:
* gst-libs/gst/resample/resample.c: (gst_resample_sinc_ft_s16),
(gst_resample_sinc_ft_float): Remove use of static temporary
buffer. This code was obviously not supposed to last long, but
it's stuck in our ABI, so it required a little hack to make it
ABI-compatible. Fixes #142585.
* gst-libs/gst/resample/resample.h: same.
Diffstat (limited to 'gst-libs/gst/resample/resample.h')
-rw-r--r-- | gst-libs/gst/resample/resample.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gst-libs/gst/resample/resample.h b/gst-libs/gst/resample/resample.h index 1c4216b3..34d6f9d6 100644 --- a/gst-libs/gst/resample/resample.h +++ b/gst-libs/gst/resample/resample.h @@ -78,12 +78,20 @@ struct gst_resample_s { void *i_buf, *o_buf; - double acc[10]; + double acc[2]; + union { + struct { + double *out_tmp; + int out_tmp_len; + } s; + double padding[8]; + } hack_union; /* methods */ void (*scale)(gst_resample_t *r); double ack; + }; void gst_resample_init(gst_resample_t *r); |