From fda4c63c95a886981829def9a01dc8a34c1023ec Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 18 Jun 2007 08:31:27 +0000 Subject: [PATCH] None of the drivers requires it to be open to determine supported formats, so let's not require it. This allows the device to be busy when rdesktop starts but can be used later when it becomes free. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1410 423420c4-83ab-492f-b58f-81f9feb106b5 --- rdpsnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rdpsnd.c b/rdpsnd.c index 89def5b..9c934b1 100644 --- a/rdpsnd.c +++ b/rdpsnd.c @@ -263,7 +263,7 @@ rdpsnd_process_negotiate(STREAM in) in_uint8a(in, format->cb, readcnt); in_uint8s(in, discardcnt); - if (device_available && current_driver->wave_out_format_supported(format)) + if (current_driver && current_driver->wave_out_format_supported(format)) { format_count++; if (format_count == MAX_FORMATS) @@ -376,7 +376,7 @@ rdpsnd_process_rec_negotiate(STREAM in) in_uint8a(in, format->cb, readcnt); in_uint8s(in, discardcnt); - if (device_available && current_driver->wave_in_format_supported(format)) + if (current_driver && current_driver->wave_in_format_supported(format)) { rec_format_count++; if (rec_format_count == MAX_FORMATS)