Compilation error when Gst.Caps is the type of a GObject property.
I am wanting to store Gst.Caps data as a GObject property. However compilation fails as shown below.
Test program to demonstrate the failure is attached.
Attempting to build with vala 0.48.13 and glib 2.66, I get the following:
valac --target-glib=2.66 -o test-caps test-gst-caps.vala --pkg gstreamer-1.0 /home/themuso/dev-builds/test-gst-caps.vala.c: In function ‘test_object_class_init’: /home/themuso/dev-builds/test-gst-caps.vala.c:127:144: error: too many arguments to function ‘g_param_spec_pointer’ 127 | g_object_class_install_property (G_OBJECT_CLASS (klass), TEST_OBJECT_MY_CAPS_PROPERTY, test_object_properties[TEST_OBJECT_MY_CAPS_PROPERTY] = g_param_spec_pointer ("my-caps", "my-caps", "my-caps", gst_caps_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE)); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib-object.h:28, from /home/themuso/dev-builds/test-gst-caps.vala.c:4: /usr/include/glib-2.0/gobject/gparamspecs.h:1109:13: note: declared here 1109 | GParamSpec* g_param_spec_pointer (const gchar *name, | ^~~~~~~~~~~~~~~~~~~~ error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s)
The generated C code is also attached.