Rename CreationError to BuildStreamError
For clarity and to tie the name more closesly to the methods within from which it may be returned.
This commit is contained in:
parent
0f27c1e0bb
commit
cf84ab906f
7 changed files with 53 additions and 53 deletions
|
|
@ -187,7 +187,7 @@ pub unsafe fn is_format_supported(
|
|||
(_, Err(ref e))
|
||||
if e.raw_os_error() == Some(AUDCLNT_E_DEVICE_INVALIDATED) => {
|
||||
(*audio_client).Release();
|
||||
return Err(CreationError::DeviceNotAvailable);
|
||||
return Err(BuildStreamError::DeviceNotAvailable);
|
||||
},
|
||||
(_, Err(e)) => {
|
||||
(*audio_client).Release();
|
||||
|
|
@ -195,7 +195,7 @@ pub unsafe fn is_format_supported(
|
|||
},
|
||||
(winerror::S_FALSE, _) => {
|
||||
(*audio_client).Release();
|
||||
return Err(CreationError::FormatNotSupported);
|
||||
return Err(BuildStreamError::FormatNotSupported);
|
||||
},
|
||||
(_, Ok(())) => (),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue