mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
fix iteration over random devices
Actually iterate over the various random devices. Fixes a infinite loop on startup when /dev/urandom isn't readable. Patch by Matt Kraai on Debian bug 491270, closes #333 Signed-off-by: Lennart Poettering <lennart@poettering.net>
This commit is contained in:
parent
065e7644ac
commit
98fbd24d62
1 changed files with 2 additions and 0 deletions
|
|
@ -77,6 +77,8 @@ static int random_proper(void *ret_data, size_t length) {
|
|||
|
||||
if (ret == 0)
|
||||
break;
|
||||
|
||||
device++;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue