ext/ladspa/gstsignalprocessor.h: Add infrastructure for storing whether a processor...
authorAndy Wingo <wingo@pobox.com>
Fri, 4 Aug 2006 11:38:54 +0000 (11:38 +0000)
committerAndy Wingo <wingo@pobox.com>
Fri, 4 Aug 2006 11:38:54 +0000 (11:38 +0000)
commit9bf2b5e3dbfa3eadd0f350dafb008cd18479d549
treef05e1b0f6ad2a179e81bf049b6da088a1479d63d
parent71cad18c5e857eb074305cca3892a076a962cf14
ext/ladspa/gstsignalprocessor.h: Add infrastructure for storing whether a processor can work in place or not, and for...

Original commit message from CVS:
2006-08-04  Andy Wingo  <wingo@pobox.com>

* ext/ladspa/gstsignalprocessor.h: Add infrastructure for storing
whether a processor can work in place or not, and for keeping
track of its state. Change the FlowReturn instance variable from
"state" to "flow_state", all callers changed.

* ext/ladspa/gstsignalprocessor.c (gst_signal_processor_setup)
(gst_signal_processor_start, gst_signal_processor_stop)
(gst_signal_processor_cleanup): New functions to manage the
processor's state.
(gst_signal_processor_setcaps): start() as well as setup() here.
(gst_signal_processor_prepare): Respect CAN_PROCESS_IN_PLACE.
(gst_signal_processor_change_state): Stop and cleanup the
processor as we go to NULL.

* ext/ladspa/gstladspa.c (gst_ladspa_base_init): Reuse buffers if
INPLACE_BROKEN is not set.

* ext/ladspa/gstsignalprocessor.c (gst_signal_processor_prepare):
Do the alloc_buffer in bytes, not frames.
ext/ladspa/gstladspa.c
ext/ladspa/gstsignalprocessor.c
ext/ladspa/gstsignalprocessor.h