mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Clean up warnings
This commit is contained in:
parent
79c4040a53
commit
8f23c3498f
1 changed files with 7 additions and 8 deletions
|
@ -950,8 +950,11 @@ impl Future for PlayerInternal {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Poll::Ready(Err(_)) => {
|
Poll::Ready(Err(e)) => {
|
||||||
warn!("Unable to load <{:?}>\nSkipping to next track", track_id);
|
warn!(
|
||||||
|
"Skipping to next track, unable to load track <{:?}>: {:?}",
|
||||||
|
track_id, e
|
||||||
|
);
|
||||||
debug_assert!(self.state.is_loading());
|
debug_assert!(self.state.is_loading());
|
||||||
self.send_event(PlayerEvent::EndOfTrack {
|
self.send_event(PlayerEvent::EndOfTrack {
|
||||||
track_id,
|
track_id,
|
||||||
|
@ -1052,7 +1055,7 @@ impl Future for PlayerInternal {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
warn!("Unable to decode samples for track <{:?}: {:?}>\nSkipping to next track", track_id, e);
|
warn!("Skipping to next track, unable to decode samples for track <{:?}>: {:?}", track_id, e);
|
||||||
self.send_event(PlayerEvent::EndOfTrack {
|
self.send_event(PlayerEvent::EndOfTrack {
|
||||||
track_id,
|
track_id,
|
||||||
play_request_id,
|
play_request_id,
|
||||||
|
@ -1068,11 +1071,7 @@ impl Future for PlayerInternal {
|
||||||
self.handle_packet(packet, normalisation_factor);
|
self.handle_packet(packet, normalisation_factor);
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
warn!(
|
warn!("Skipping to next track, unable to get next packet for track <{:?}>: {:?}", track_id, e);
|
||||||
"Unable to get packet for track <{:?}: {:?}>\nSkipping to next track",
|
|
||||||
e,
|
|
||||||
track_id
|
|
||||||
);
|
|
||||||
self.send_event(PlayerEvent::EndOfTrack {
|
self.send_event(PlayerEvent::EndOfTrack {
|
||||||
track_id,
|
track_id,
|
||||||
play_request_id,
|
play_request_id,
|
||||||
|
|
Loading…
Reference in a new issue