mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix up notify
This commit is contained in:
parent
b5e0ea2bd3
commit
09bd1bd324
1 changed files with 2 additions and 1 deletions
|
@ -1153,6 +1153,7 @@ impl Future for PlayerInternal {
|
||||||
let new_stream_position_ms = packet_position
|
let new_stream_position_ms = packet_position
|
||||||
.position_ms
|
.position_ms
|
||||||
.saturating_sub(sample_pipeline_latency_ms);
|
.saturating_sub(sample_pipeline_latency_ms);
|
||||||
|
|
||||||
let expected_position_ms = std::mem::replace(
|
let expected_position_ms = std::mem::replace(
|
||||||
&mut *stream_position_ms,
|
&mut *stream_position_ms,
|
||||||
new_stream_position_ms,
|
new_stream_position_ms,
|
||||||
|
@ -1200,7 +1201,7 @@ impl Future for PlayerInternal {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
notify
|
notify || sample_pipeline_latency_ms > 1000
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue