]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
ctl: elem_info_int: fix wrong assignment to private value
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 16 Dec 2019 19:02:29 +0000 (04:02 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sat, 28 Dec 2019 04:16:06 +0000 (13:16 +0900)
ALSACtl::ElemInfoInt has properties for 'min', 'max' and 'step' but their
assignments are not proper. This commit fixes the bug.

Fixes: aac870451a89 ("ctl: elem_info_int: add properties for type-dependent parameters and constructor")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/ctl/elem-info-int.c

index 2bdfe36dcf8faf0d143572de19cccfabece32e0d..457921bd335108ee0ee73d93130153d4f5fc670d 100644 (file)
@@ -29,10 +29,10 @@ static void ctl_elem_info_int_set_property(GObject *obj, guint id,
         info->value.integer.min = (long)g_value_get_int(val);
         break;
     case CTL_ELEM_INFO_INT_PROP_MAX:
-        info->value.integer.min = (long)g_value_get_int(val);
+        info->value.integer.max = (long)g_value_get_int(val);
         break;
     case CTL_ELEM_INFO_INT_PROP_STEP:
-        info->value.integer.min = (long)g_value_get_int(val);
+        info->value.integer.step = (long)g_value_get_int(val);
         break;
     default:
         G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, id, spec);