|
@@ -67,6 +67,8 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
|
|
|
BOOL _activeSession;
|
|
|
|
|
|
NSLock *_playbackSessionManagementLock;
|
|
|
+
|
|
|
+ VLCDialogProvider *_dialogProvider;
|
|
|
}
|
|
|
|
|
|
@end
|
|
@@ -89,6 +91,7 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
|
|
|
|
|
|
- (void)dealloc
|
|
|
{
|
|
|
+ _dialogProvider = nil;
|
|
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
|
}
|
|
|
|
|
@@ -106,6 +109,8 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
|
|
|
[defaultCenter addObserver:self selector:@selector(applicationDidEnterBackground:)
|
|
|
name:UIApplicationDidEnterBackgroundNotification object:nil];
|
|
|
|
|
|
+ _dialogProvider = [[VLCDialogProvider alloc] initWithLibrary:[VLCLibrary sharedLibrary] customUI:NO];
|
|
|
+
|
|
|
_playbackSessionManagementLock = [[NSLock alloc] init];
|
|
|
}
|
|
|
return self;
|