Skip to content

Commit b8e705c

Browse files
committed
Fix if statement usage.
1 parent 0034215 commit b8e705c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

source/scenes/video_player.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,9 +2379,8 @@ debug_info_view =
23792379

23802380
// sync with sound
23812381
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 {
2382+
if (cur_sound_pos >= 0) { // if sound is not playing, probably because the video is lagging
2383+
// behind, draw immediately
23852384
while (pts - cur_sound_pos > 0.003 && vid_play_request && !vid_seek_request &&
23862385
!vid_change_video_request) {
23872386
double sleep_microseconds =

0 commit comments

Comments
 (0)