[Vala] Re : Gstreamer : cannot connect signal to GstTypeFindElement
- From: Frédéric Gaudy <fred_gaudy yahoo fr>
- To: Frédéric Gaudy <fred_gaudy yahoo fr>, vala-list gnome org
- Subject: [Vala] Re : Gstreamer : cannot connect signal to GstTypeFindElement
- Date: Tue, 2 Dec 2008 18:59:54 +0000 (GMT)
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 <fred_gaudy yahoo fr>
À : vala-list gnome org
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?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]