After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726745 - GstURIHandlerInterface incorrect for gst 1.0 vapi.
GstURIHandlerInterface incorrect for gst 1.0 vapi.
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings: GTK+ GStreamer WebKitGTK+
0.23.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-19 21:19 UTC by leimiao09
Modified: 2014-03-20 22:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description leimiao09 2014-03-19 21:19:01 UTC
The current GstURIHandlerInterface is:

[CCode (cheader_filename = "gst/gst.h", type_cname = "GstURIHandlerInterface", type_id = "gst_uri_handler_get_type ()")]
	public interface URIHandler : GLib.Object {
		[CCode (array_length = false, array_null_terminated = true)]
		public unowned string[] get_protocols ();
		public abstract string get_uri ();
		public Gst.URIType get_uri_type ();
		public abstract bool set_uri (string uri) throws GLib.Error;
	}

I believe the correct one should be:

[CCode (cheader_filename = "gst/gst.h", type_cname = "GstURIHandlerInterface", type_id = "gst_uri_handler_get_type ()")]
	public interface URIHandler : GLib.Object {
		[CCode (array_length = false, array_null_terminated = true)]
		public abstract unowned string[] get_protocols (GLib.Type type);
		public abstract string get_uri ();
                [CCode (vfunc_name = "get_type")]
		public abstract Gst.URIType get_uri_type (GLib.Type type);
		public abstract bool set_uri (string uri) throws GLib.Error;
	}
Comment 1 Luca Bruno 2014-03-20 22:18:49 UTC
commit 5b8db054c3b26c9418816be796fffce9d042a0ee
Author: Luca Bruno <lucabru@src.gnome.org>
Date:   Thu Mar 20 21:27:17 2014 +0100

    gstreamer-0.10: Set GstURIHandler.get_uri_type vfunc to get_type
    
    Fixes bug 726745

commit c1324f492737c27552a28d0d911e74064cdfa75b
Author: Luca Bruno <lucabru@src.gnome.org>
Date:   Thu Mar 20 22:24:27 2014 +0100

    gidlparser: Do not set nullable to void type

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.