mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
controlbindings: fix pspec relaxation for control source properties
The change should have been from PARAM_CONSTRUCT_ONLY to
PARAM_CONSTRUCT, otherwise bindings are affected, since
they look for the CONSTRUCT flag.
See ec55363d
This commit is contained in:
parent
b25b9ad6bd
commit
f1971fe1e9
2 changed files with 10 additions and 5 deletions
|
@ -104,22 +104,26 @@ gst_argb_control_binding_class_init (GstARGBControlBindingClass * klass)
|
|||
properties[PROP_CS_A] =
|
||||
g_param_spec_object ("control-source-a", "ControlSource A",
|
||||
"The control source for the alpha color component",
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
properties[PROP_CS_R] =
|
||||
g_param_spec_object ("control-source-r", "ControlSource R",
|
||||
"The control source for the red color component",
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
properties[PROP_CS_G] =
|
||||
g_param_spec_object ("control-source-g", "ControlSource G",
|
||||
"The control source for the green color component",
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
properties[PROP_CS_B] =
|
||||
g_param_spec_object ("control-source-b", "ControlSource B",
|
||||
"The control source for the blue color component",
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
g_object_class_install_properties (gobject_class, PROP_LAST, properties);
|
||||
}
|
||||
|
|
|
@ -177,7 +177,8 @@ gst_direct_control_binding_class_init (GstDirectControlBindingClass * klass)
|
|||
properties[PROP_CS] =
|
||||
g_param_spec_object ("control-source", "ControlSource",
|
||||
"The control source",
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
g_object_class_install_properties (gobject_class, PROP_LAST, properties);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue