summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-05-14 13:57:41 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-05-14 13:57:41 +0000
commit8ed88a34d0b29d46629fce23d6b8e9d4a4522d40 (patch)
tree082210c6a9929265f45211907c73f8b2698a88ab
parent8bcf8c0b0c7eb916f3e9dd2d904c0e04574736ef (diff)
gst/audioresample/gstaudioresample.c: Revert previous change which made basetransform handle buffer_alloc and which b...RELEASE-0_10_20
Original commit message from CVS: * gst/audioresample/gstaudioresample.c: (gst_audioresample_init): Revert previous change which made basetransform handle buffer_alloc and which breaks things badly in the non-passthrough case since it returned buffers with a different (ie. sometimes smaller) size than the size requested.
-rw-r--r--gst/audioresample/gstaudioresample.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index a36e68810..a8eb3fd12 100644
--- a/gst/audioresample/gstaudioresample.c
+++ b/gst/audioresample/gstaudioresample.c
@@ -192,6 +192,10 @@ gst_audioresample_init (GstAudioresample * audioresample,
trans = GST_BASE_TRANSFORM (audioresample);
+ /* buffer alloc passthrough is too impossible. FIXME, it
+ * is trivial in the passthrough case. */
+ gst_pad_set_bufferalloc_function (trans->sinkpad, NULL);
+
audioresample->filter_length = DEFAULT_FILTERLEN;
audioresample->need_discont = FALSE;