summaryrefslogtreecommitdiff
path: root/rdpsnd.c
diff options
context:
space:
mode:
authorMichael Gernoth <michael@gernoth.net>2006-12-24 15:22:15 +0000
committerMichael Gernoth <michael@gernoth.net>2006-12-24 15:22:15 +0000
commitf39ecfa6f6d198dbfd97beffe33bc94dd24a308d (patch)
tree4516ddb62610a01d5d475c8d3d85554e12749b89 /rdpsnd.c
parente0cad6bc614ffac021f46d592713c59126ecfc32 (diff)
downloadrdesktop-f39ecfa6f6d198dbfd97beffe33bc94dd24a308d.zip
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
Diffstat (limited to 'rdpsnd.c')
-rw-r--r--rdpsnd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rdpsnd.c b/rdpsnd.c
index 1c39588..6f9a10d 100644
--- a/rdpsnd.c
+++ b/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;
}