summaryrefslogtreecommitdiffstats
path: root/ext/ladspa/gstsignalprocessor.c
AgeCommit message (Collapse)AuthorFilesLines
2008-10-30ext/ladspa/gstladspa.c: Whitespace.Stefan Kost1-2/+3
Original commit message from CVS: * ext/ladspa/gstladspa.c: Whitespace. * ext/ladspa/gstsignalprocessor.c: Add a FIXME:. not sure if this code does the forwarding correctly.
2008-03-20ext/ladspa/: Add some thoughts and FIXME's.Stefan Kost1-1/+3
Original commit message from CVS: * ext/ladspa/gstladspa.c: * ext/ladspa/gstsignalprocessor.c: Add some thoughts and FIXME's.
2008-02-04ext/ladspa/gstsignalprocessor.c: Don't unref the pad template after adding ↵Sebastian Dröge1-1/+0
it. gst_element_class_add_pad_template tak... Original commit message from CVS: * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_class_add_pad_template): Don't unref the pad template after adding it. gst_element_class_add_pad_template takes ownership of it.
2007-01-12ext/ladspa/gstsignalprocessor.c (gst_signal_processor_fixate)Andy Wingo1-39/+55
Original commit message from CVS: 2007-01-12 Andy Wingo <wingo@pobox.com> * ext/ladspa/gstsignalprocessor.c (gst_signal_processor_fixate) (gst_signal_processor_ouija_caps, gst_signal_processor_prepare): Remove fixate/ouija stuff, thankfully, due to the new part-negotiation.txt pull-mode negotiation scheme. (gst_signal_processor_setcaps_pull) (gst_signal_processor_setcaps): Implement upstream set_caps pull proxying for pull mode. Now this works: ladspa-sine-fcac ! audioconvert ! alsasink.
2007-01-06ext/ladspa/gstsignalprocessor.cAndy Wingo1-31/+31
Original commit message from CVS: 2007-01-06 Andy Wingo <wingo@pobox.com> * ext/ladspa/gstsignalprocessor.c (gst_signal_processor_ouija_caps): Move around in the source file... (gst_signal_processor_prepare, gst_signal_processor_do_pulls): Call ouija_caps in prepare() instead of do_pulls(), a bit earlier. This allows us to have caps when we do the pad_alloc_buffer(). (gst_pad_alloc_buffer_and_set_caps): Use self->caps instead of the pad caps, which might not be set yet.
2007-01-06ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_add_pad_from_template)Andy Wingo1-16/+51
Original commit message from CVS: 2007-01-06 Andy Wingo <wingo@pobox.com> * ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_add_pad_from_template) (gst_signal_processor_fixate): Add a fixate function, to assist in pathological ladspa-sine-fcac ! fakesink can-activate-pull=true cases. (gst_signal_processor_prepare, gst_signal_processor_process): Add nframes args so that getrange can tell ladspa how many frames to process. (gst_signal_processor_ouija_caps): setcaps needs to be called before processing, which normally happens when chaining a buffer to a pad. However in getrange mode with no sinks we need to check explicitly for this condition, guess some caps to use, and use those to setcaps(). Hence this mystical function. (gst_signal_processor_do_pulls): Pull in bytes, not samples. Divine the caps if necessary. (gst_signal_processor_getrange): Interpret the length as bytes, not samples. (gst_signal_processor_chain): nframes=G_MAXUINT, will be limited by incoming buffer sizes.
2006-12-18ext/ladspa/gstsignalprocessor.c: Reset flow_state back to _OK after a flush ↵Wim Taymans1-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
2006-08-16ext/ladspa/gstsignalprocessor.c: Make ladspa elements reusable. Fixes #350006.Andy Wingo1-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.
2006-08-16ext/ladspa/gstsignalprocessor.c: A push() gives away our refcount so we ↵Wim Taymans1-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.
2006-08-04ext/ladspa/gstsignalprocessor.h: Add infrastructure for storing whether a ↵Andy Wingo1-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.
2006-08-04BPBAndy Wingo1-1/+1
Original commit message from CVS: (gst_signal_processor_src_activate_pull): BPB
2006-08-04ext/ladspa/gstsignalprocessor.c (gst_signal_processor_setcaps) ↵Andy Wingo1-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.
2006-07-31ext/ladspa/gstsignalprocessor.c (gst_signal_processor_process): Fix ↵Andy Wingo1-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.
2006-07-31ext/ladspa/gstsignalprocessor.c (gst_signal_processor_init): No more default ↵Andy Wingo1-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.
2006-07-31ext/ladspa/gstsignalprocessor.c: don't query buffer-frames from caps, add ↵Stefan Kost1-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)
2006-07-29ext/ladspa/gstsignalprocessor.c: Add debugs logs here and there, add more ↵Stefan Kost1-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
2006-02-20ext/ladspa/gstsignalprocessor.c: Fix compilation of LADPSA. It doesn't seem ↵Jan Schmidt1-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.
2005-12-05Update for alloc_buffer changes.Andy Wingo1-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.
2005-11-21Update for stream lock API changes: don't take stream log in sink event ↵Tim-Philipp Müller1-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.
2005-10-07ext/raw1394/gstdv1394src.c: Make interruptible, so it won't block forever in ↵Andy Wingo1-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().
2005-09-02All plugins updated for element state changes.Andy Wingo1-13/+12
Original commit message from CVS: 2005-09-02 Andy Wingo <wingo@pobox.com> * All plugins updated for element state changes.
2005-08-28Updates for two-arg init from GST_BOILERPLATE.Andy Wingo1-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.
2005-08-26ext/ladspa/gstladspa.*: Finish porting, still doesn't work but it does ↵Andy Wingo1-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.
2005-08-25add missing filesAndy Wingo1-0/+704
Original commit message from CVS: add missing files