[vlc-commits] macosx/library: remove invalid assumption about the library parsing state
Felix Paul Kühne
git at videolan.org
Wed Oct 16 11:40:09 CEST 2019
vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Wed Oct 16 11:30:25 2019 +0200| [4aee01abce9c77caaa1293d18d4c476202da0d9f] | committer: Felix Paul Kühne
macosx/library: remove invalid assumption about the library parsing state
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4aee01abce9c77caaa1293d18d4c476202da0d9f
---
modules/gui/macosx/library/VLCLibraryController.m | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/modules/gui/macosx/library/VLCLibraryController.m b/modules/gui/macosx/library/VLCLibraryController.m
index f037a35b33..64e80e7ce3 100644
--- a/modules/gui/macosx/library/VLCLibraryController.m
+++ b/modules/gui/macosx/library/VLCLibraryController.m
@@ -55,14 +55,6 @@ float kVLCDefaultThumbnailPosition = .15;
_unsorted = YES;
NSNotificationCenter *defaultNotificationCenter = [NSNotificationCenter defaultCenter];
- [defaultNotificationCenter addObserver:self
- selector:@selector(applicationWillEnterBackground:)
- name:NSApplicationWillResignActiveNotification
- object:nil];
- [defaultNotificationCenter addObserver:self
- selector:@selector(applicationWillBecomeActive:)
- name:NSApplicationWillBecomeActiveNotification
- object:nil];
[defaultNotificationCenter addObserver:self
selector:@selector(applicationWillBecomeActive:)
name:NSApplicationDidFinishLaunchingNotification
@@ -81,20 +73,6 @@ float kVLCDefaultThumbnailPosition = .15;
_p_libraryInstance = NULL;
}
-- (void)applicationWillEnterBackground:(NSNotification *)aNotification
-{
- if (_p_libraryInstance) {
- vlc_ml_resume_background(_p_libraryInstance);
- }
-}
-
-- (void)applicationWillBecomeActive:(NSNotification *)aNotification
-{
- if (_p_libraryInstance) {
- vlc_ml_pause_background(_p_libraryInstance);
- }
-}
-
- (void)playbackStateChanged:(NSNotification *)aNotification
{
if (!_p_libraryInstance) {
More information about the vlc-commits
mailing list