OSS: correct test for unsupported formats
Previously GetAvailableFormats returned paSampleFormatNotSupported if AFMT_S16_NE was not supported, regardless of the supported state of any other formats. Instead, return paSampleFormatNotSupported if no supported formats are found.
This commit is contained in:
parent
f13ab77c46
commit
fc2a24d394
1 changed files with 1 additions and 1 deletions
|
|
@ -961,7 +961,7 @@ static PaError GetAvailableFormats( PaOssStreamComponent *component, PaSampleFor
|
||||||
frmts |= paInt8;
|
frmts |= paInt8;
|
||||||
if( mask & AFMT_S16_NE )
|
if( mask & AFMT_S16_NE )
|
||||||
frmts |= paInt16;
|
frmts |= paInt16;
|
||||||
else
|
if( frmts == 0 )
|
||||||
result = paSampleFormatNotSupported;
|
result = paSampleFormatNotSupported;
|
||||||
|
|
||||||
*availableFormats = frmts;
|
*availableFormats = frmts;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue