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:
parent
e0cad6bc61
commit
f39ecfa6f6
5
rdpsnd.c
5
rdpsnd.c
@ -142,10 +142,11 @@ rdpsnd_process_negotiate(STREAM in)
|
||||
(int) in_format_count, (unsigned) pad, (unsigned) version));
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user