[gst-devel] problem with playing wav file

Thijs Vermeir thijsvermeir at gmail.com
Tue Jun 24 15:21:46 CEST 2008


Hi,

On Tue, Jun 24, 2008 at 1:47 PM, Ganesh Kundapur
<ganesh.kundapur at gmail.com> wrote:
> Hi,
>   I'm able to play the wav file by using gst-launch as fallows
> ...
> --
> int
> main ( int argc, char *argv[] )
> {
> ...
>         //gst_element_link ( source, parser );
>         gst_element_link_many ( source, parser, conv, sink, NULL );

Here you already try to link the parser with the converter and the pad
is not created, It's a sometimes pad check "gst-inspect wavparse". So
here you just need to do.
  gst_element_link ( source, parser);
  gst_element_link (conv, sink);

>         g_signal_connect ( parser, "pad-added", G_CALLBACK ( new_pad ), NULL
> );

In the new_pad function (if you didn't change it) will the new pad be
connected to the decoder element. In this context there is no decoder
element anymore so change this to the conv element.

Should be working with this changes...

> If i do without the dynamic pads, as
That does not make sense because there is a sometimes pad in wavparse.

Gr,
Thijs




More information about the gstreamer-devel mailing list