|
Description
|
description from bugs.openjdk.java.net (Omair Majid):
On Linux distributions with PulseAudio installed, snd_pcm_hw_params_any() can
return a positive value on success, not just 0. When OpenJDK tries to open the
ALSA 'default' device, it sees this positive return value and considers it an
error, moving on to using ALSA hardware devices directly. The ALSA
documentation isnt very clear about the return value, but the alsa examples use
'snd_pcm_hw_params_any() < 0' to check for error [1]. Other audio programs have
encountered the same issue [2]. The patch changes the check from 'ret != 0' to
'ret < 0' and sets ret = 0 so the code that follows isnt affected.
This bug affects both OpenJDK and OpenJDK6.
Posted Date : 2009-04-20 14:51:25.0
|