fix device_available which I broke in a previous commit

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1352 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2006-12-24 15:22:15 +00:00
parent e0cad6bc61
commit f39ecfa6f6

View File

@ -142,10 +142,11 @@ rdpsnd_process_negotiate(STREAM in)
(int) in_format_count, (unsigned) pad, (unsigned) version)); (int) in_format_count, (unsigned) pad, (unsigned) version));
if (!current_driver) if (!current_driver)
rdpsnd_auto_select(); device_available = rdpsnd_auto_select();
if (current_driver) if (current_driver && !device_available && current_driver->wave_out_open())
{ {
current_driver->wave_out_close();
device_available = True; device_available = True;
} }