ahcsrc: There's no point in read-only CONSTRUCT properties
And creating one is causing assertions. Also get rid of the other CONSTRUCT property as it's a) unneeded for default initialization and b) you're not supposed to use constructor properties when creating element instances and the GStreamer API doesn't provide direct ways for doing so. https://bugzilla.gnome.org/show_bug.cgi?id=764339
This commit is contained in:
parent
11ace3c18a
commit
5d9df5d5d0
@ -297,7 +297,7 @@ gst_ahc_src_class_init (GstAHCSrcClass * klass)
|
|||||||
*/
|
*/
|
||||||
properties[PROP_DEVICE] = g_param_spec_string ("device",
|
properties[PROP_DEVICE] = g_param_spec_string ("device",
|
||||||
"Device", "Device ID", DEFAULT_DEVICE,
|
"Device", "Device ID", DEFAULT_DEVICE,
|
||||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
|
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||||
g_object_class_install_property (gobject_class, PROP_DEVICE,
|
g_object_class_install_property (gobject_class, PROP_DEVICE,
|
||||||
properties[PROP_DEVICE]);
|
properties[PROP_DEVICE]);
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ gst_ahc_src_class_init (GstAHCSrcClass * klass)
|
|||||||
*/
|
*/
|
||||||
properties[PROP_DEVICE_NAME] = g_param_spec_string ("device-name",
|
properties[PROP_DEVICE_NAME] = g_param_spec_string ("device-name",
|
||||||
"Device name", "Device name", NULL,
|
"Device name", "Device name", NULL,
|
||||||
G_PARAM_READABLE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
|
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
|
||||||
g_object_class_install_property (gobject_class, PROP_DEVICE_NAME,
|
g_object_class_install_property (gobject_class, PROP_DEVICE_NAME,
|
||||||
properties[PROP_DEVICE_NAME]);
|
properties[PROP_DEVICE_NAME]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user