Explorar el Código

VLCMediaPlayer: retain shared library to prevent from destroying it after release

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Gleb Pinigin hace 12 años
padre
commit
e1d2d228f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Sources/VLCMediaPlayer.m

+ 1 - 1
Sources/VLCMediaPlayer.m

@@ -981,7 +981,7 @@ static const VLCMediaPlayerState libvlc_to_local_state[] =
         if (options && options.count > 0)
             _privateLibrary = [[VLCLibrary alloc] initWithOptions:options];
         else
-            _privateLibrary = [VLCLibrary sharedLibrary];
+            _privateLibrary = [[VLCLibrary sharedLibrary] retain];
         _playerInstance = libvlc_media_player_new([_privateLibrary instance]);
 
         [self registerObservers];