summaryrefslogtreecommitdiffstats
path: root/ext/ladspa
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-09-16 06:13:41 +0000
committerAndy Wingo <wingo@pobox.com>2002-09-16 06:13:41 +0000
commit9fa281527eaffe294f824865eb43bb1924be39fb (patch)
tree2e2396d63727b1b585bf8519234826921bd39f47 /ext/ladspa
parente229e116ef3e31dac5707882ca4131e160191b50 (diff)
downloadgst-plugins-bad-9fa281527eaffe294f824865eb43bb1924be39fb.tar.gz
gst-plugins-bad-9fa281527eaffe294f824865eb43bb1924be39fb.tar.bz2
gst-plugins-bad-9fa281527eaffe294f824865eb43bb1924be39fb.zip
fix _get()-based ladspa plugins when bufferpools are present
Original commit message from CVS: fix _get()-based ladspa plugins when bufferpools are present
Diffstat (limited to 'ext/ladspa')
-rw-r--r--ext/ladspa/gstladspa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c
index aa004fdf..cd9119a7 100644
--- a/ext/ladspa/gstladspa.c
+++ b/ext/ladspa/gstladspa.c
@@ -442,6 +442,8 @@ gst_ladspa_init (GstLADSPA *ladspa)
/* get mode (no sink pads) */
GST_DEBUG (0, "mono get mode with 1 src pad");
+ ladspa->newcaps = TRUE;
+
gst_pad_set_connect_function (ladspa->srcpads[0], gst_ladspa_connect_get);
gst_pad_set_get_function (ladspa->srcpads[0], gst_ladspa_get);
} else if (sinkcount==1){
@@ -1045,7 +1047,7 @@ gst_ladspa_get(GstPad *pad)
data = (LADSPA_Data *) GST_BUFFER_DATA(buf);
desc = ladspa->descriptor;
- GST_DPMAN_PREPROCESS(ladspa->dpman, ladspa->buffersize, ladspa->timestamp);
+ GST_DPMAN_PREPROCESS(ladspa->dpman, GST_BUFFER_SIZE (buf) / sizeof (gfloat), ladspa->timestamp);
num_processed = 0;
/* split up processing of the buffer into chunks so that dparams can