[vlc-commits] [Git][videolan/vlc][master] macosx: Pause video playback on video window close
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sun Aug 17 17:24:32 UTC 2025
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
bbfb988d by Claudio Cambra at 2025-08-17T17:11:15+00:00
macosx: Pause video playback on video window close
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/windows/video/VLCVideoWindowCommon.m
Changes:
=====================================
modules/gui/macosx/windows/video/VLCVideoWindowCommon.m
=====================================
@@ -655,4 +655,12 @@ NSString *VLCWindowShouldShowController = @"VLCWindowShouldShowController";
}
}
+- (BOOL)windowShouldClose:(NSWindow *)sender
+{
+ if (!self.playerController.currentMediaIsAudioOnly && self.playerController.playerState == VLC_PLAYER_STATE_PLAYING) {
+ [self.playerController pause];
+ }
+ return YES;
+}
+
@end
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bbfb988db50a4cb6d5cde98e440fe47def1a47f2
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bbfb988db50a4cb6d5cde98e440fe47def1a47f2
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list