diff options
author | Leif Johnson <leif@ambient.2y.net> | 2002-01-22 04:34:26 +0000 |
---|---|---|
committer | Leif Johnson <leif@ambient.2y.net> | 2002-01-22 04:34:26 +0000 |
commit | 44d4269dc814bc4e565322b8558aeecdc0e716be (patch) | |
tree | 4f202e96319fd1aebb05cfbbe0de19bbbf4bb893 /ext | |
parent | 02b0cdae1254f72e314603b752a35d98466ef9a1 (diff) | |
download | gst-plugins-bad-44d4269dc814bc4e565322b8558aeecdc0e716be.tar.gz gst-plugins-bad-44d4269dc814bc4e565322b8558aeecdc0e716be.tar.bz2 gst-plugins-bad-44d4269dc814bc4e565322b8558aeecdc0e716be.zip |
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.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/audiofile/gstafsrc.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |