Check that the sound backend supports wave_in_format_supported before

calling it.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1426 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Pierre Ossman 2008-01-18 15:11:57 +00:00
parent 2e16fa661d
commit e693ed89c7

View File

@ -376,7 +376,8 @@ rdpsnd_process_rec_negotiate(STREAM in)
in_uint8a(in, format->cb, readcnt); in_uint8a(in, format->cb, readcnt);
in_uint8s(in, discardcnt); in_uint8s(in, discardcnt);
if (current_driver && current_driver->wave_in_format_supported(format)) if (current_driver && current_driver->wave_in_format_supported
&& current_driver->wave_in_format_supported(format))
{ {
rec_format_count++; rec_format_count++;
if (rec_format_count == MAX_FORMATS) if (rec_format_count == MAX_FORMATS)