We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0034215 commit b8e705cCopy full SHA for b8e705c
1 file changed
source/scenes/video_player.cpp
@@ -2379,9 +2379,8 @@ debug_info_view =
2379
2380
// sync with sound
2381
double cur_sound_pos = Util_speaker_get_current_timestamp(0, vid_sample_rate);
2382
- if (cur_sound_pos < 0) { // sound is not playing, probably because the video is lagging behind,
2383
- // so draw immediately
2384
- } else {
+ if (cur_sound_pos >= 0) { // if sound is not playing, probably because the video is lagging
+ // behind, draw immediately
2385
while (pts - cur_sound_pos > 0.003 && vid_play_request && !vid_seek_request &&
2386
!vid_change_video_request) {
2387
double sleep_microseconds =
0 commit comments