Fix up notify

This commit is contained in:
JasonLG1979 2023-06-22 04:43:56 -05:00
parent b5e0ea2bd3
commit 09bd1bd324

View file

@ -1153,6 +1153,7 @@ impl Future for PlayerInternal {
let new_stream_position_ms = packet_position
.position_ms
.saturating_sub(sample_pipeline_latency_ms);
let expected_position_ms = std::mem::replace(
&mut *stream_position_ms,
new_stream_position_ms,
@ -1200,7 +1201,7 @@ impl Future for PlayerInternal {
}
}
notify
notify || sample_pipeline_latency_ms > 1000
}
};