summaryrefslogtreecommitdiffstats
path: root/ext/ladspa/gstsignalprocessor.c
Commit message (Collapse)AuthorAgeFilesLines
* ext/ladspa/gstsignalprocessor.c: Reset flow_state back to _OK after a flush ↵Wim Taymans2006-12-181-7/+18
| | | | | | | | | | stop so that we exit our error state afte... Original commit message from CVS: * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_setcaps), (gst_signal_processor_event): Reset flow_state back to _OK after a flush stop so that we exit our error state after the flush. Fixes #374213
* ext/ladspa/gstsignalprocessor.c: Make ladspa elements reusable. Fixes #350006.Andy Wingo2006-08-161-12/+57
| | | | | | | | | | | | Original commit message from CVS: Patch by: Andy Wingo <wingo at pobox dot com> * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_setup), (gst_signal_processor_start), (gst_signal_processor_stop), (gst_signal_processor_cleanup), (gst_signal_processor_setcaps), (gst_signal_processor_pen_buffer), (gst_signal_processor_flush), (gst_signal_processor_do_pulls), (gst_signal_processor_do_pushes), (gst_signal_processor_change_state): Make ladspa elements reusable. Fixes #350006.
* ext/ladspa/gstsignalprocessor.c: A push() gives away our refcount so we ↵Wim Taymans2006-08-161-4/+6
| | | | | | | | | | should not use the buffer on the pen anymore. Original commit message from CVS: * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_flush), (gst_signal_processor_do_pushes): A push() gives away our refcount so we should not use the buffer on the pen anymore.
* ext/ladspa/gstsignalprocessor.h: Add infrastructure for storing whether a ↵Andy Wingo2006-08-041-36/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* BPBAndy Wingo2006-08-041-1/+1
| | | | | Original commit message from CVS: (gst_signal_processor_src_activate_pull): BPB
* ext/ladspa/gstsignalprocessor.c (gst_signal_processor_setcaps) ↵Andy Wingo2006-08-041-74/+127
| | | | | | | | | | | | | | | | | | (gst_signal_processor_prepare) (gst_signal_processor_u... Original commit message from CVS: 2006-08-04 Andy Wingo <wingo@pobox.com> * ext/ladspa/gstsignalprocessor.c (gst_signal_processor_setcaps) (gst_signal_processor_prepare) (gst_signal_processor_update_inputs) (gst_signal_processor_process, gst_signal_processor_pen_buffer) (gst_signal_processor_flush) (gst_signal_processor_sink_activate_push) (gst_signal_processor_src_activate_pull) (gst_signal_processor_change_state): Remove the last of the code that assumes that we process whole buffers at a time. Fix some debugging. Seems to work now in some cases.
* ext/ladspa/gstsignalprocessor.c (gst_signal_processor_process): Fix ↵Andy Wingo2006-07-311-2/+11
| | | | | | | | | | | nframes-choosing. Original commit message from CVS: 2006-08-01 Andy Wingo <wingo@pobox.com> * ext/ladspa/gstsignalprocessor.c (gst_signal_processor_process): Fix nframes-choosing. (gst_signal_processor_init): Init pending_in and pending_out.
* ext/ladspa/gstsignalprocessor.c (gst_signal_processor_init): No more default ↵Andy Wingo2006-07-311-35/+71
| | | | | | | | | | | | | | | | | | | | | | | | | sample rate, although we never check tha... Original commit message from CVS: 2006-08-01 Andy Wingo <wingo@pobox.com> * ext/ladspa/gstsignalprocessor.c (gst_signal_processor_init): No more default sample rate, although we never check that the sample rate actually gets set. Something for the future. (gst_signal_processor_setcaps): Some refcount fixes, flow fixes. (gst_signal_processor_event): Refcount fixen. (gst_signal_processor_process): Pull the number of frames to process from the sizes of the buffers in the input pens. (gst_signal_processor_pen_buffer): Remove an incorrect FIXME :) (gst_signal_processor_do_pulls): Add an nframes argument, and use it instead of buffer_frames. (gst_signal_processor_getrange): Refcount fixen, pass nframes on to do_pulls. (gst_signal_processor_chain) (gst_signal_processor_sink_activate_push) (gst_signal_processor_src_activate_pull): Refcount fixen. * ext/ladspa/gstsignalprocessor.h: No more buffer_frames, yay.
* ext/ladspa/gstsignalprocessor.c: don't query buffer-frames from caps, add ↵Stefan Kost2006-07-311-12/+7
| | | | | | | | | | lots of debug-log, try fix for assert (#349... Original commit message from CVS: * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_setcaps), (gst_signal_processor_process): don't query buffer-frames from caps, add lots of debug-log, try fix for assert (#349189)
* ext/ladspa/gstsignalprocessor.c: Add debugs logs here and there, add more ↵Stefan Kost2006-07-291-9/+52
| | | | | | | | | | | | | | | | error handling, add some Original commit message from CVS: * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_add_pad_from_template), (gst_signal_processor_init), (gst_signal_processor_setcaps), (gst_signal_processor_process), (gst_signal_processor_pen_buffer), (gst_signal_processor_do_pulls), (gst_signal_processor_getrange), (gst_signal_processor_sink_activate_push), (gst_signal_processor_src_activate_pull), (gst_signal_processor_change_state): Add debugs logs here and there, add more error handling, add some FIXME comments, filed #349189
* ext/ladspa/gstsignalprocessor.c: Fix compilation of LADPSA. It doesn't seem ↵Jan Schmidt2006-02-201-1/+3
| | | | | | | | | | | to work, and isn't enabled for the build,... Original commit message from CVS: * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_event), (gst_signal_processor_process): Fix compilation of LADPSA. It doesn't seem to work, and isn't enabled for the build, but it helps me win the feature-count competitions ooh yeah.
* Update for alloc_buffer changes.Andy Wingo2005-12-051-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: 2005-12-05 Andy Wingo <wingo@pobox.com> * ext/dv/gstdvdec.c: (gst_dvdec_chain): * ext/flac/gstflacdec.c: (gst_flacdec_write): * ext/flac/gstflacenc.c: (gst_flacenc_write_callback): * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_chain): * ext/gdk_pixbuf/pixbufscale.c: (gst_pixbufscale_chain): * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain): * ext/jpeg/gstjpegenc.c: (gst_jpegenc_chain): * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_process): * ext/libpng/gstpngdec.c: (user_info_callback), (gst_pngdec_task): * ext/speex/gstspeexdec.c: (speex_dec_chain): * ext/speex/gstspeexenc.c: (gst_speexenc_chain): * gst/auparse/gstauparse.c: (gst_auparse_chain): * gst/flx/gstflxdec.c: (gst_flxdec_chain): * gst/goom/gstgoom.c: (gst_goom_chain): * gst/matroska/matroska-demux.c: (gst_matroska_demux_push_vorbis_codec_priv_data), (gst_matroska_demux_add_wvpk_header): * gst/multipart/multipartdemux.c: (gst_multipart_demux_chain): * gst/multipart/multipartmux.c: (gst_multipart_mux_collected): * gst/videomixer/videomixer.c: (gst_videomixer_collected): * gst/wavenc/gstwavenc.c: (gst_wavenc_chain): Update for alloc_buffer changes.
* Update for stream lock API changes: don't take stream log in sink event ↵Tim-Philipp Müller2005-11-211-22/+0
| | | | | | | | | | | | | | | | | | | | | | handlers any longer and change GST_STREAM_LOC... Original commit message from CVS: * ext/dv/gstdvdemux.c: (gst_dvdemux_handle_sink_event): * ext/flac/gstflacdec.c: (gst_flacdec_loop), (gst_flacdec_src_event): * ext/flac/gstflacenc.c: (gst_flacenc_sink_event): * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_event), (gst_signal_processor_getrange), (gst_signal_processor_chain): * gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek): * gst/flx/gstflxdec.c: (gst_flxdec_src_event_handler), (gst_flxdec_sink_event_handler): * gst/matroska/matroska-demux.c: (gst_matroska_demux_handle_seek_event): * gst/wavparse/gstwavparse.c: (gst_wavparse_handle_seek): Update for stream lock API changes: don't take stream log in sink event handlers any longer and change GST_STREAM_LOCK to GST_PAD_STREAM_LOCK. Don't leak references in flxdec event functions.
* ext/raw1394/gstdv1394src.c: Make interruptible, so it won't block forever in ↵Andy Wingo2005-10-071-1/+1
| | | | | | | | | | a read(). Original commit message from CVS: 2005-10-07 Andy Wingo <wingo@pobox.com> * ext/raw1394/gstdv1394src.c: Make interruptible, so it won't block forever in a read().
* All plugins updated for element state changes.Andy Wingo2005-09-021-13/+12
| | | | | | | Original commit message from CVS: 2005-09-02 Andy Wingo <wingo@pobox.com> * All plugins updated for element state changes.
* Updates for two-arg init from GST_BOILERPLATE.Andy Wingo2005-08-281-9/+6
| | | | | | | | | | | | | | | | | Original commit message from CVS: 2005-08-28 Andy Wingo <wingo@pobox.com> * Updates for two-arg init from GST_BOILERPLATE. * ext/ladspa/gstsignalprocessor.c (gst_signal_processor_init): Use the second arg for the class, because G_OBJECT_GET_CLASS (self) returns the wrong thing. (gst_signal_processor_add_pad_from_template): Make pads of the right type. * ext/ladspa/gstladspa.c (gst_ladspa_class_get_param_spec): Make writable param specs G_PARAM_CONSTRUCT so default values work. (gst_ladspa_init): Use the second arg for the class.
* ext/ladspa/gstladspa.*: Finish porting, still doesn't work but it does ↵Andy Wingo2005-08-261-17/+25
| | | | | | | | | | | | | | compile and register. I have more features tha... Original commit message from CVS: 2005-08-26 Andy Wingo <wingo@pobox.com> * ext/ladspa/gstladspa.c: * ext/ladspa/gstladspa.h: Finish porting, still doesn't work but it does compile and register. I have more features than you. * ext/ladspa/gstsignalprocessor.h: * ext/ladspa/gstsignalprocessor.c: Updates, bug fixen.
* add missing filesAndy Wingo2005-08-251-0/+704
Original commit message from CVS: add missing files