Skip to content

Commit

Permalink
Handle unknown aggregate sub devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Pehrsons committed Jun 17, 2024
1 parent 1796ace commit 1ec04b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/device_property.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ pub fn get_device_streams(
);
return Ok(sub_device_ids
.into_iter()
.filter_map(|sub_id| get_device_streams(sub_id, devtype).ok())
.filter_map(|sub_id| match sub_id {
#[allow(non_upper_case_globals)]
kAudioObjectUnknown => None,
i => get_device_streams(i, devtype).ok(),
})
.flatten()
.collect());
}
Expand Down

0 comments on commit 1ec04b5

Please sign in to comment.