[gst-devel] gst_bin_add_many(), gst_element_connect_many() are warning me.

Kang Jeong-Hee Keizi at mail.co.kr
Tue May 14 10:55:03 CEST 2002


as I'll show you, I have just use gst_bin_add_many() and gst_element_connect_many() to make thread.
but I've found strange warnings which is talking about gnomevfs, gstpad.
I think this is a slight error of gst itself.
I hope to listen your say.

thanks.


below is the stdout of my applet work.
===========
$ gramophone_applet 
INFO (16380: 0) Initializing GStreamer Core Library
INFO (16380: 0) CPU features: (0c040841) MMX SSE 

(gramophone_applet:16386): libgnomevfs-CRITICAL **: file gnome-vfs-uri.c: line 459 (gnome_vfs_uri_new_private): assertion `text_uri != NULL' failed

(gramophone_applet:16387): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GstPad'

(gramophone_applet:16387): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GstPad'
================



and below is the only code that I made to give gst into my applet.
==============
GstElement *engine_new(
                GramophoneApplet *gramophone
) {
        GstElement *thread,
                *in, *decoder, *out;

        /* FIXME: restruct main(), not PANEL macro? */
        gst_init( NULL, NULL );

        in = gst_element_factory_make( "gnomevfssrc", "in" );
        /* "spider" is universal plugin wrapper for any file */
        decoder = gst_element_factory_make( "spider", "decoder" );
        /* TODO: selective out, such as oss, esd, arts, etc. */
        out = gst_element_factory_make( "esdsink", "out" );

        thread = gst_thread_new( "engine" );
        gst_bin_add_many( GST_BIN(thread), in, decoder, out, NULL );
        gst_element_connect_many( in, decoder, out, NULL );

        /* connect to 'thread', rather than 'in'? */
        g_signal_connect( G_OBJECT(in), "eos", /* end of stream */
                        G_CALLBACK(engine_meet_end_of_stream), gramophone );

        return thread;
}
====================




More information about the gstreamer-devel mailing list