1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-08 11:26:59 +02:00

macosx/library: remove invalid assumption about the library parsing state

This commit is contained in:
Felix Paul Kühne 2019-10-16 11:30:25 +02:00
parent 7fb646b1da
commit 4aee01abce

View File

@ -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) {