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
This commit is contained in:
Pierre Ossman 2007-06-18 08:31:27 +00:00
parent d201361d53
commit fda4c63c95

View File

@ -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)