[gst-devel] HELP: Link "wavparse" to "audioconvert" has error.

Freeman Zhang pcman.zhang at gmail.com
Mon Nov 2 13:27:28 CET 2009


Thanks you very much, I understand.

2009/11/2 Tim-Philipp Müller <t.i.m at zen.co.uk>

> On Mon, 2009-11-02 at 19:57 +0800, Freeman Zhang wrote:
>
> > But, why the command line "gst-launch" can handle it?
>
> Ah, sorry, it seems I was a bit too quick and completely misunderstood
> your problem.
>
> The problem is that wavparse's sink pad is a sometimes pad which will be
> added only later when data flow starts (-> 'dynamic pads'). The reason
> for that is that wavparse needs to figure out the type of data first (it
> uses dynamic pads for historical reason related to decodebin/playbin, it
> doesn't strictly have to, but we can't change that now). So there will
> be no sink pad to link to after the element has been created, and you
> will need to do the linking to audioconvert or whatever in a pad-added
> callback later.
>
> Mad's sink pad on the other hand always exists, so you can link it right
> away.
>
> Still, I would recommend you just use uridecodebin/decodebin2/playbin2
> if that's an option.
>
> Cheers
>  -Tim
>
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20091102/79048d55/attachment.htm>


More information about the gstreamer-devel mailing list