[gst-devel] playing ogg problem
in7y118 at public.uni-hamburg.de
Wed Jun 23 05:14:21 CEST 2004
oggdemux uses SOMETIMES pads. You can't just connect oggdemux to
vorbisdec, but have to wait until the new_pad signal of oggdemux is
emitted and in a callback connect that pad to vorbisdec.
If you had done error checking in your code, you might have figured that
out yourself, because gst_element_link_many would have failed.
On Wed, 23 Jun 2004, laurent belmonte wrote:
> I am porting my program from gst-0.6 to gst-0.8 and i have a simple
> I can't play ogg file. With gst-launch, it is just work fine but with my
> code it doesn't.
> gst-launch-0.8 filesrc location=toto.ogg ! oggdemux ! vorbisdec !
> audioconvert ! esdsink
> so if someone can look at my code and explain me why it doesn't, i will
> be happy
> to compile :
> gcc -c main.c `pkg-config --cflags gstreamer-0.8`
> gcc -o test main.o `pkg-config --libs gstreamer-0.8`
> and to launch :
> ./test test.ogg
> Thanks for any help,
More information about the gstreamer-devel