Skip to content

Commit

Permalink
Fix up notify
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLG1979 committed Jun 22, 2023
1 parent b5e0ea2 commit 09bd1bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playback/src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1200,7 +1201,7 @@ impl Future for PlayerInternal {
}
}

notify
notify || sample_pipeline_latency_ms > 1000
}
};

Expand Down

0 comments on commit 09bd1bd

Please sign in to comment.