[vlc-commits] [Git][videolan/vlc][master] player: fix the A-B loop deadline at rate != 1

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Oct 11 16:14:48 UTC 2026



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
0fddbac8 by Thomas Guillem at 2026-10-11T18:01:50+02:00
player: fix the A-B loop deadline at rate != 1

The rate calculation was inverted.

Regression from 624afb642df.

- - - - -


1 changed file:

- src/player/player.c


Changes:

=====================================
src/player/player.c
=====================================
@@ -213,7 +213,7 @@ vlc_player_GetAtoBLoopDeadline(vlc_player_t *player)
             return VLC_TICK_MIN;
         b_time = input->abloop_state[1].pos * input->length;
     }
-    return now + (b_time - ts) * input->rate;
+    return now + (vlc_tick_t) ((b_time - ts) / input->rate);
 }
 
 static void *



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0fddbac8470745c5530e0b37ca0d5b581817ac68

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0fddbac8470745c5530e0b37ca0d5b581817ac68
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list