webaudio: Fix default_output_config()

This commit is contained in:
Rob Watson 2020-09-10 15:50:35 +02:00
parent 3d2fddc13e
commit 8789312826
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ impl Device {
configs.sort_by(|a, b| a.cmp_default_heuristics(b));
let config = configs
.into_iter()
.next()
.last()
.expect(EXPECT)
.with_sample_rate(DEFAULT_SAMPLE_RATE);
Ok(config)