]> git.alsa-project.org Git - alsa-python.git/commitdiff
hcontrol / mixer - fixed typos in callbacks
authorJaroslav Kysela <perex@perex.cz>
Sun, 8 Jul 2007 12:59:16 +0000 (14:59 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 8 Jul 2007 12:59:16 +0000 (14:59 +0200)
pyalsa/alsahcontrol.c
pyalsa/alsamixer.c

index 970b0cf76064c99dc188150b8595becbab9582a1..beb22bd6710fdca21f2335d71e0b730fa8195516 100644 (file)
@@ -1450,7 +1450,7 @@ static int element_callback(snd_hctl_elem_t *elem, unsigned int mask)
                        
                if (r) {
                        if (PyInt_Check(r)) {
-                               res = PyInt_AsLong(o);
+                               res = PyInt_AsLong(r);
                        } else if (r == Py_None) {
                                res = 0;
                        }
index e58d8cfacef1780decbe110f3b3911d34c82e600..78050368a32623cc55bc1bae03a4a421fe27b91e 100644 (file)
@@ -1205,7 +1205,7 @@ static int element_callback(snd_mixer_elem_t *elem, unsigned int mask)
                        
                if (r) {
                        if (PyInt_Check(r)) {
-                               res = PyInt_AsLong(o);
+                               res = PyInt_AsLong(r);
                        } else if (r == Py_None) {
                                res = 0;
                        }