Fix logic error, whitespace

This commit is contained in:
Lars Immisch
2015-05-10 02:21:44 +02:00
parent 369b202e04
commit ed5ecccc97

View File

@@ -1574,7 +1574,8 @@ alsamixer_getrange(alsamixer_t *self, PyObject *args)
return NULL;
}
elem = alsamixer_find_elem(self->handle,self->controlname,self->controlid);
elem = alsamixer_find_elem(self->handle, self->controlname,
self->controlid);
if (!pcmtypeobj || (pcmtypeobj == Py_None))
{
@@ -1586,7 +1587,7 @@ alsamixer_getrange(alsamixer_t *self, PyObject *args)
}
}
if (pcmtype == SND_PCM_STREAM_CAPTURE)
if (pcmtype == SND_PCM_STREAM_PLAYBACK)
{
if (snd_mixer_selem_has_playback_channel(elem, 0))
{