[gst-devel] why wavparse can't be linked in programming?

Tim Müller t.i.m at zen.co.uk
Thu Apr 26 10:01:21 CEST 2007


On Thu, 2007-04-26 at 10:52 +0800, linguang_wang at astrocom.cn wrote:

> Thanks your help! The problem is solved as you sayed.I didn't seen the code at gstwavparse:
> ---------------------------------------------------------------------------
>   /* first chunk of data? create the source pad. We do this only here so
>    * we can detect broken .wav files with dts disguised as raw PCM (sigh) */
>   if (G_UNLIKELY (wav->first)) {
>     wav->first = FALSE;
>     gst_wavparse_add_src_pad (wav, buf);
>   }
> ---------------------------------------------------------------------------

You shouldn't need to look at the code (always good if you do of course,
but not required to write applications).

  $ gst-inspect-0.10 wavparse

will tell you this as well: in the 'Pad Templates' section it will say
SOMETIMES instead of ALWAYS for the source pad.

Cheers
 -Tim






More information about the gstreamer-devel mailing list