mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
controlbinding: relax the pspec for the control-source
We can change control sources on controlbindings.
This commit is contained in:
parent
e642896565
commit
ec55363da3
3 changed files with 6 additions and 11 deletions
|
@ -35,7 +35,7 @@
|
|||
* - the weak-ref on object is not nice, as is the same as gst_object_parent()
|
||||
* once the object is added to the parent
|
||||
*
|
||||
* - another option would be do defer what I am doing in _constructor to when
|
||||
* - another option would be to defer what is done in _constructor to when
|
||||
* the parent is set (need to listen to the signal then)
|
||||
* then basically I could
|
||||
* a) remove the obj arg and wait the binding to be added or
|
||||
|
|
|
@ -104,26 +104,22 @@ 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_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | 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_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | 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_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | 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_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
g_object_class_install_properties (gobject_class, PROP_LAST, properties);
|
||||
}
|
||||
|
|
|
@ -176,8 +176,7 @@ 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_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
|
||||
GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
|
||||
|
||||
g_object_class_install_properties (gobject_class, PROP_LAST, properties);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue