mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
ladspa: simplify the code
Remove a local var and just use the parameter value.
This commit is contained in:
parent
c78819b26a
commit
78d116a64d
1 changed files with 5 additions and 9 deletions
|
@ -517,24 +517,20 @@ gst_ladspa_object_class_install_properties (GstLADSPAClass * ladspa_class,
|
|||
GObjectClass * object_class, guint offset)
|
||||
{
|
||||
GParamSpec *p;
|
||||
gint i, ix;
|
||||
gint i;
|
||||
|
||||
ladspa_class->properties = offset;
|
||||
|
||||
/* properties have an offset */
|
||||
ix = ladspa_class->properties;
|
||||
|
||||
/* register properties */
|
||||
|
||||
for (i = 0; i < ladspa_class->count.control.in; i++, ix++) {
|
||||
for (i = 0; i < ladspa_class->count.control.in; i++, offset++) {
|
||||
p = gst_ladspa_object_class_get_param_spec (ladspa_class, object_class,
|
||||
ladspa_class->map.control.in[i]);
|
||||
g_object_class_install_property (object_class, ix, p);
|
||||
g_object_class_install_property (object_class, offset, p);
|
||||
}
|
||||
for (i = 0; i < ladspa_class->count.control.out; i++, ix++) {
|
||||
for (i = 0; i < ladspa_class->count.control.out; i++, offset++) {
|
||||
p = gst_ladspa_object_class_get_param_spec (ladspa_class, object_class,
|
||||
ladspa_class->map.control.out[i]);
|
||||
g_object_class_install_property (object_class, ix, p);
|
||||
g_object_class_install_property (object_class, offset, p);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue