Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonoughe committed May 8, 2022
1 parent 7566577 commit b3f6459
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/media/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,12 @@ impl Endpoint {
///
/// This allows discovery of a SoundCore implementation for devices that support it.
pub fn clsid(&self) -> Result<GUID, SoundCoreError> {
let store = self
.property_store()?;
let store = self.property_store()?;
let value = match store.get_string_value(&PKEY_SOUNDCORECTL_CLSID_AE5)? {
Some(value) => value,
None => store.get_string_value(&PKEY_SOUNDCORECTL_CLSID_Z)?.ok_or(SoundCoreError::NotSupported)?,
None => store
.get_string_value(&PKEY_SOUNDCORECTL_CLSID_Z)?
.ok_or(SoundCoreError::NotSupported)?,
};
parse_guid(&value).or(Err(SoundCoreError::NotSupported))
}
Expand Down

0 comments on commit b3f6459

Please sign in to comment.