[gst-devel] Simple

Frédéric Gaudy fred_gaudy at yahoo.fr
Fri Dec 5 20:17:19 CET 2008


I try to create a program that just read a audio file using [filesrc ! decodebin ! autoaudiosink] pipe.

But when playing I've got this error :
Error ! Internal data flow error.
Debug ! gstbasesrc.c(2240): gst_base_src_loop (): /convert/filesrc:
streaming task paused, reason not-linked (-1)

But I've linked filesrc to decodebin, so I don't understand the meaning of this error

I hope you could help me.

Code :
public void read() {
        File source      = File.new_for_uri(this.source);
        File destination = File.new_for_uri(this.destination);
        Element filesrc = ElementFactory.make("filesrc", "filesrc");
        filesrc.set("location", source.get_path() );
        Element decodebin = ElementFactory.make("decodebin", "decodebin");
        Element filesink = ElementFactory.make("autoaudiosink", "filesink");
        this.pipeline = new Pipeline("convert");
        pipeline.add_many(filesrc, decodebin, filesink);
        var bus = pipeline.get_bus();
        bus.message += this.message_bus_callback;
        this.pipeline.set_state( Gst.State.PLAYING );

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081205/e87b17fa/attachment.htm>

More information about the gstreamer-devel mailing list