mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@ gst_ahc_src_class_init (GstAHCSrcClass * klass)
|
|||
*/
|
||||
properties[PROP_DEVICE] = g_param_spec_string ("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,
|
||||
properties[PROP_DEVICE]);
|
||||
|
||||
|
@ -308,7 +308,7 @@ gst_ahc_src_class_init (GstAHCSrcClass * klass)
|
|||
*/
|
||||
properties[PROP_DEVICE_NAME] = g_param_spec_string ("device-name",
|
||||
"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,
|
||||
properties[PROP_DEVICE_NAME]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue