controlbinding: relax the pspec for the control-source

We can change control sources on controlbindings.
This commit is contained in:
Stefan Sauer 2013-03-07 09:15:14 +01:00
parent e642896565
commit ec55363da3
3 changed files with 6 additions and 11 deletions

View file

@ -35,7 +35,7 @@
* - the weak-ref on object is not nice, as is the same as gst_object_parent() * - the weak-ref on object is not nice, as is the same as gst_object_parent()
* once the object is added to the 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) * the parent is set (need to listen to the signal then)
* then basically I could * then basically I could
* a) remove the obj arg and wait the binding to be added or * a) remove the obj arg and wait the binding to be added or

View file

@ -104,26 +104,22 @@ gst_argb_control_binding_class_init (GstARGBControlBindingClass * klass)
properties[PROP_CS_A] = properties[PROP_CS_A] =
g_param_spec_object ("control-source-a", "ControlSource A", g_param_spec_object ("control-source-a", "ControlSource A",
"The control source for the alpha color component", "The control source for the alpha color component",
GST_TYPE_CONTROL_SOURCE, GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
properties[PROP_CS_R] = properties[PROP_CS_R] =
g_param_spec_object ("control-source-r", "ControlSource R", g_param_spec_object ("control-source-r", "ControlSource R",
"The control source for the red color component", "The control source for the red color component",
GST_TYPE_CONTROL_SOURCE, GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
properties[PROP_CS_G] = properties[PROP_CS_G] =
g_param_spec_object ("control-source-g", "ControlSource G", g_param_spec_object ("control-source-g", "ControlSource G",
"The control source for the green color component", "The control source for the green color component",
GST_TYPE_CONTROL_SOURCE, GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
properties[PROP_CS_B] = properties[PROP_CS_B] =
g_param_spec_object ("control-source-b", "ControlSource B", g_param_spec_object ("control-source-b", "ControlSource B",
"The control source for the blue color component", "The control source for the blue color component",
GST_TYPE_CONTROL_SOURCE, GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (gobject_class, PROP_LAST, properties); g_object_class_install_properties (gobject_class, PROP_LAST, properties);
} }

View file

@ -176,8 +176,7 @@ gst_direct_control_binding_class_init (GstDirectControlBindingClass * klass)
properties[PROP_CS] = properties[PROP_CS] =
g_param_spec_object ("control-source", "ControlSource", g_param_spec_object ("control-source", "ControlSource",
"The control source", "The control source",
GST_TYPE_CONTROL_SOURCE, GST_TYPE_CONTROL_SOURCE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (gobject_class, PROP_LAST, properties); g_object_class_install_properties (gobject_class, PROP_LAST, properties);
} }