From bc12f6c8eecd9799c8f6938551cf040b501a5059 Mon Sep 17 00:00:00 2001
From: David Fuhrmann <dfuhrmann@videolan.org>
Date: Mon, 15 Apr 2019 23:18:37 +0200
Subject: [PATCH] macosx: Fix short seeks

Player needs to be locked here.
---
 modules/gui/macosx/playlist/VLCPlayerController.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/macosx/playlist/VLCPlayerController.m b/modules/gui/macosx/playlist/VLCPlayerController.m
index cdbdb9c4ca6f..e94d946ca8a8 100644
--- a/modules/gui/macosx/playlist/VLCPlayerController.m
+++ b/modules/gui/macosx/playlist/VLCPlayerController.m
@@ -1027,12 +1027,14 @@ static const struct vlc_player_aout_cbs player_aout_callbacks = {
         if (!shallJumpForward)
             jumptime = jumptime * -1;
 
+        vlc_player_Lock(_p_player);
         /* No fask seek for jumps. Indeed, jumps can seek to the current position
          * if not precise enough or if the jump value is too small. */
         vlc_player_SeekByTime(_p_player,
                               jumptime,
                               VLC_PLAYER_SEEK_PRECISE,
                               VLC_PLAYER_WHENCE_RELATIVE);
+        vlc_player_Unlock(_p_player);
     }
 }
 
-- 
GitLab