vlc | branch: master | Felix Paul Kühne <[email protected]> | Fri Jan 20 10:32:58 2012 -0800| [1fb57312dde28b3e8d1bb966418229898d1fdfa5] | committer: Felix Paul Kühne
macosx: pause playback on window minimization only if there is an active video output (fixes #5882) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1fb57312dde28b3e8d1bb966418229898d1fdfa5 --- modules/gui/macosx/MainWindow.m | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m index 2463f13..8d6ccbe 100644 --- a/modules/gui/macosx/MainWindow.m +++ b/modules/gui/macosx/MainWindow.m @@ -767,7 +767,8 @@ static VLCMainWindow *_o_sharedInstance = nil; if (b_dark_interface) { [self miniaturize: sender]; - [[VLCCoreInteraction sharedInstance] pause]; + if ([[VLCMain sharedInstance] activeVideoPlayback]) + [[VLCCoreInteraction sharedInstance] pause]; } else [super performMiniaturize: sender]; @@ -1272,7 +1273,10 @@ static VLCMainWindow *_o_sharedInstance = nil; - (void)someWindowWillMiniaturize:(NSNotification *)notification { if([notification object] == o_nonembedded_window || [notification object] == self) - [[VLCCoreInteraction sharedInstance] pause]; + { + if([[VLCMain sharedInstance] activeVideoPlayback]) + [[VLCCoreInteraction sharedInstance] pause]; + } } #pragma mark - _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
