GNOME Bugzilla – Bug 720694
cannot call Gst.ElementFactory.get_static_pad_templates
Last modified: 2014-02-03 22:17:56 UTC
When I try to use get_static_pad_templates I get this error: gstreamer-1.0.vapi:948.28-948.48: error: `Gst.StaticPadTemplate' is not a supported generic type argument, use `?' to box value types public unowned GLib.List<Gst.StaticPadTemplate> get_static_pad_templates (); When I add the '?' to the return type it works correctly.
This is the correct behavior, valac gave you an error and you had to fix it, it's not a bug. Please reopen if needed.
I meant that the vapi file is incorrect. That's why I filed this against the "bindings" component.
Can you please then explain why is it wrong?
Ops sorry, now I realized StaticPadTemplate wasn't your generic.
Given that's transfer none in the annotations, it should be something like unowned GLib.List<unowned Gst.StaticPadTemplate?>. Can you confirm if it works for you? I mean, if it's usable and if you don't experience any crash.
Yes, that works fine. Thanks.
commit 871cf22610d7869afa90c64a014da9bcebcd620f Author: Luca Bruno <lucabru@src.gnome.org> Date: Mon Feb 3 23:16:32 2014 +0100 gstreamer-1.0: Fix ElementFactory.get_static_pad_templates return type Fixes bug 720694 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.