I found the error.

object.connect("signal", callback);
isn't the a same as
object.signal += callback;

I must use 
GLib.Signal.connect(object, "signal", (Glib.Callback) callback); 

New code :
Gst.Element typefinder = Gst.ElementFactory.make("typefind", "typefinder");
GLib..Signal.connect(typefinder, "have-type", (Glib.Callback) 
this.on_have_type, this);



________________________________
De : Frédéric Gaudy <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Mardi, 2 Décembre 2008, 17h28mn 20s
Objet : [Vala] Gstreamer : cannot connect signal  to GstTypeFindElement


Hi,

I'm using the Gst.Element "typefind" to detect the stream capabilities. 
But when connecting to its specific signal "have-type" I've got this runtime 
message :
GLib-GObject-WARNING **: IA__g_object_connect: invalid signal spec "have-type"

My code is :
Gst.Element typefinder = Gst.ElementFactory.make("typefind", "typefinder");
typefinder.connect("have-type", this.on_have_type, this);

It return a GstTypeFindElement which isn't declared in gstreamer.vapi because 
it's loaded as plugin.

If I query signals from this type I find :
    id : 325
    signal_name : have-type

Some ideas?


      
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to