Takashi Iwai
1e1ad9f5ff
- More backports of fix patches from upstream: 0051-Add-sys-types.h-to-include-list.patch 0052-control-Simplify-using-snd_config_get_bool.patch 0053-Add-workaround-for-conflicting-IEC958-controls-for-H.patch 0054-snd_mixer_poll_descriptors_revents-should-loop-over-.patch OBS-URL: https://build.opensuse.org/request/show/158622 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=125
29 lines
856 B
Diff
29 lines
856 B
Diff
From 28493d9d693b1387ed38a849b2d256b34baba2b4 Mon Sep 17 00:00:00 2001
|
|
From: Sander Jansen <s.jansen@gmail.com>
|
|
Date: Mon, 25 Feb 2013 10:41:40 -0600
|
|
Subject: [PATCH 54/54] snd_mixer_poll_descriptors_revents should loop over
|
|
pollfd
|
|
|
|
Signed-off-by: Sander Jansen <s.jansen@gmail.com>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
src/mixer/mixer.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/mixer/mixer.c b/src/mixer/mixer.c
|
|
index 85d843f..8deceac 100644
|
|
--- a/src/mixer/mixer.c
|
|
+++ b/src/mixer/mixer.c
|
|
@@ -743,7 +743,7 @@ int snd_mixer_poll_descriptors_revents(snd_mixer_t *mixer, struct pollfd *pfds,
|
|
if (nfds == 0)
|
|
return -EINVAL;
|
|
res = 0;
|
|
- for (idx = 0; idx < nfds; idx++)
|
|
+ for (idx = 0; idx < nfds; idx++, pfds++)
|
|
res |= pfds->revents & (POLLIN|POLLERR|POLLNVAL);
|
|
*revents = res;
|
|
return 0;
|
|
--
|
|
1.8.1.4
|
|
|