From 44d4269dc814bc4e565322b8558aeecdc0e716be Mon Sep 17 00:00:00 2001 From: Leif Johnson Date: Tue, 22 Jan 2002 04:34:26 +0000 Subject: Modified passthrough, adder, playondemand, float2int, int2float, and ladspa to work with the new caps nego changes. Original commit message from CVS: Modified passthrough, adder, playondemand, float2int, int2float, and ladspa to work with the new caps nego changes. Updated adder to work with float data, now uses bytestreams. Updated ladspa to work in any M sinkpads by N srcpads configuration, M > -1 and N > 0. Also updated ladspa to work as a loop-based element using bytestreams for MxN configurations other than M == N == 1 or M == 0. --- ext/audiofile/gstafsrc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/audiofile/gstafsrc.c') diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c index ae4e54a2..6c89b1b6 100644 --- a/ext/audiofile/gstafsrc.c +++ b/ext/audiofile/gstafsrc.c @@ -167,10 +167,8 @@ gst_afsrc_class_init (GstAFSrcClass *klass) static void gst_afsrc_init (GstAFSrc *afsrc) { - // GstPad *pad; this is now done in the struct - /* no need for a template, caps are set based on file, right ? */ - afsrc->srcpad = gst_pad_new ("src", GST_PAD_SRC); + afsrc->srcpad = gst_pad_new_from_template (afsrc_src_factory (), "src"); gst_element_add_pad (GST_ELEMENT (afsrc), afsrc->srcpad); gst_pad_set_get_function (afsrc->srcpad, gst_afsrc_get); -- cgit v1.2.1