fix double open of sound device. should at least allow oss, libao, sun and
sgi drivers to be selected again, when they only allow one open of the device. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1349 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
c1aa0656a4
commit
84a393eebb
4
rdpsnd.c
4
rdpsnd.c
@ -106,6 +106,7 @@ rdpsnd_auto_select(void)
|
|||||||
if (current_driver->wave_out_open())
|
if (current_driver->wave_out_open())
|
||||||
{
|
{
|
||||||
DEBUG(("selected %s\n", current_driver->name));
|
DEBUG(("selected %s\n", current_driver->name));
|
||||||
|
current_driver->wave_out_close();
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
current_driver = current_driver->next;
|
current_driver = current_driver->next;
|
||||||
@ -143,9 +144,8 @@ rdpsnd_process_negotiate(STREAM in)
|
|||||||
if (!current_driver)
|
if (!current_driver)
|
||||||
rdpsnd_auto_select();
|
rdpsnd_auto_select();
|
||||||
|
|
||||||
if (current_driver && current_driver->wave_out_open())
|
if (current_driver)
|
||||||
{
|
{
|
||||||
current_driver->wave_out_close();
|
|
||||||
device_available = True;
|
device_available = True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user