[gst-devel] Conversion in C
Ronald S. Bultje
rbultje at ronald.bitfreak.net
Tue Feb 8 15:05:10 CET 2005
Hi,
On Tue, 2005-02-08 at 22:52, Christoffer Sørensen wrote:
> cb_newpad (GstElement *element,
> GstPad *pad,
> gpointer data)
> {
>
> }
[..]
> g_signal_connect (decoder, "new-decoded-pad", G_CALLBACK (cb_newpad), NULL);
[..]
> gst_element_link_many(src,decoder,converter,encoder,dest,NULL);
You don't seem to understand the point of new-decoded-pad. You cannot
link it yet, because it doesn't exist yet. You can only link it once it
exists. so link src to decoder and convert/encoder/dest to each other,
but only link decoder to convert in the new-pad callback. Also, add
decoder/src to the iterated pipeline, but only add the rest once the
decoder/convert are linked.
Ronald
--
Ronald S. Bultje <rbultje at ronald.bitfreak.net>
More information about the gstreamer-devel
mailing list