Improve handling of the DefaultFormatError

This commit is contained in:
mitchmindtree 2019-06-21 01:34:07 +02:00
parent fbb97f51ef
commit f0e4e312c1
4 changed files with 41 additions and 18 deletions

View file

@ -313,8 +313,7 @@ impl Device {
return Err(DefaultFormatError::StreamTypeNotSupported);
}
Err(SupportedFormatsError::BackendSpecific { err }) => {
unimplemented!();
//return Err(err.into());
return Err(err.into());
}
Ok(fmts) => fmts.collect(),
}