mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Warn when there's a Rodio failure accessing a default device formats.
This commit is contained in:
parent
5ceb4db9b8
commit
99703a268f
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ fn list_formats(ref device: &rodio::Device) {
|
|||
let default_fmt = match device.default_output_format() {
|
||||
Ok(fmt) => cpal::SupportedFormat::from(fmt),
|
||||
Err(e) => {
|
||||
info!("Error getting default rodio::Sink format: {:?}", e);
|
||||
warn!("Error getting default rodio::Sink format: {:?}", e);
|
||||
return;
|
||||
},
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ fn list_formats(ref device: &rodio::Device) {
|
|||
let mut output_formats = match device.supported_output_formats() {
|
||||
Ok(f) => f.peekable(),
|
||||
Err(e) => {
|
||||
info!("Error getting supported rodio::Sink formats: {:?}", e);
|
||||
warn!("Error getting supported rodio::Sink formats: {:?}", e);
|
||||
return;
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue