[vlc-commits] macosx: player controller: Deindent code
David Fuhrmann
git at videolan.org
Tue Apr 16 00:01:37 CEST 2019
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Apr 15 23:46:57 2019 +0200| [a4bc6cc0da3f838d5ad0e7f0a2ca62a5b06234b7] | committer: David Fuhrmann
macosx: player controller: Deindent code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4bc6cc0da3f838d5ad0e7f0a2ca62a5b06234b7
---
modules/gui/macosx/playlist/VLCPlayerController.m | 27 ++++++++++++-----------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/modules/gui/macosx/playlist/VLCPlayerController.m b/modules/gui/macosx/playlist/VLCPlayerController.m
index e94d946ca8..9de294b430 100644
--- a/modules/gui/macosx/playlist/VLCPlayerController.m
+++ b/modules/gui/macosx/playlist/VLCPlayerController.m
@@ -1022,20 +1022,21 @@ static const struct vlc_player_aout_cbs player_aout_callbacks = {
- (void)jumpWithValue:(char *)p_userDefinedJumpSize forward:(BOOL)shallJumpForward
{
int64_t interval = var_InheritInteger(getIntf(), p_userDefinedJumpSize);
- if (interval > 0) {
- vlc_tick_t jumptime = vlc_tick_from_sec( interval );
- if (!shallJumpForward)
- jumptime = jumptime * -1;
+ if (interval <= 0)
+ return;
- 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);
- }
+ vlc_tick_t jumptime = vlc_tick_from_sec(interval);
+ 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);
}
- (void)jumpForwardExtraShort
More information about the vlc-commits
mailing list