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:
Michael Gernoth 2006-12-24 13:48:50 +00:00
parent c1aa0656a4
commit 84a393eebb

View File

@ -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;
} }