mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
remove compiler warning
This commit is contained in:
parent
ba7d058784
commit
5ad6446616
1 changed files with 3 additions and 1 deletions
|
@ -495,7 +495,9 @@ impl PlayerInternal {
|
|||
let stream_data_rate = self.stream_data_rate();
|
||||
if let Some(stream_loader_controller) = self.state.stream_loader_controller() {
|
||||
stream_loader_controller.set_stream_mode();
|
||||
if let PlayerState::Playing{..} = self.state {
|
||||
}
|
||||
if let PlayerState::Playing{..} = self.state {
|
||||
if let Some(stream_loader_controller) = self.state.stream_loader_controller() {
|
||||
let wait_for_data_length = (2 * stream_loader_controller.ping_time_ms() * stream_data_rate) / 1000;
|
||||
stream_loader_controller.fetch_next_blocking(wait_for_data_length);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue