Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
pyalsa
0001-Fix-get_volume_array-for-mono-channels.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-get_volume_array-for-mono-channels.patch of Package pyalsa
From 6ca6689c8b989626a1dc58ede4aa859de98286d2 Mon Sep 17 00:00:00 2001 From: Arvin Schnell <aschnell@suse.de> Date: Mon, 12 Mar 2012 14:56:45 +0100 Subject: [PATCH 1/2] Fix get_volume_array() for mono channels also reported as bug 5546 Signed-off-by: Takashi Iwai <tiwai@suse.de> --- pyalsa/alsamixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyalsa/alsamixer.c b/pyalsa/alsamixer.c index d686f16..662a2a9 100644 --- a/pyalsa/alsamixer.c +++ b/pyalsa/alsamixer.c @@ -627,7 +627,7 @@ pyalsamixerelement_getvolumearray(struct pyalsamixerelement *pyelem, PyObject *a return NULL; res = snd_mixer_selem_get_playback_volume(pyelem->elem, SND_MIXER_SCHN_MONO, &val); if (res >= 0) - PyTuple_SetItem(t, 0, PyInt_FromLong(val)); + PyList_SetItem(t, 0, PyInt_FromLong(val)); } else { t = PyList_New(SND_MIXER_SCHN_LAST+1); if (!t) @@ -658,7 +658,7 @@ pyalsamixerelement_getvolumearray(struct pyalsamixerelement *pyelem, PyObject *a return NULL; res = snd_mixer_selem_get_capture_volume(pyelem->elem, SND_MIXER_SCHN_MONO, &val); if (res >= 0) - PyTuple_SET_ITEM(t, 0, PyInt_FromLong(val)); + PyList_SET_ITEM(t, 0, PyInt_FromLong(val)); } else { t = PyList_New(SND_MIXER_SCHN_LAST+1); if (!t) -- 1.7.9.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor