[vlc-commits] macosx: Fix short seeks
David Fuhrmann
git at videolan.org
Mon Apr 15 23:19:05 CEST 2019
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Apr 15 23:18:37 2019 +0200| [bc12f6c8eecd9799c8f6938551cf040b501a5059] | committer: David Fuhrmann
macosx: Fix short seeks
Player needs to be locked here.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc12f6c8eecd9799c8f6938551cf040b501a5059
---
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 cdbdb9c4ca..e94d946ca8 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);
}
}
More information about the vlc-commits
mailing list