lv2: fix inverted boolean properties

https://bugzilla.gnome.org/show_bug.cgi?id=791330
This commit is contained in:
Tim-Philipp Müller 2018-01-15 20:01:06 +00:00
parent 5d8d1d359c
commit 944f347d00

View file

@ -487,7 +487,7 @@ gst_lv2_object_set_property (GstLV2 * lv2, GObject * object,
switch (type) {
case G_TYPE_BOOLEAN:
lv2->ports.control.in[prop_id] =
g_value_get_boolean (value) ? 0.0f : 1.0f;
g_value_get_boolean (value) ? 1.0f : 0.0f;
break;
case G_TYPE_INT:
lv2->ports.control.in[prop_id] = g_value_get_int (value);