[vlc-devel] [PATCH] VLCMediaPlayer: retain shared library to prevent from destroying it after release
Gleb Pinigin
gpinigin at gmail.com
Mon Jul 22 05:59:04 CEST 2013
---
Sources/VLCMediaPlayer.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Sources/VLCMediaPlayer.m b/Sources/VLCMediaPlayer.m
index 5ec9ce7..32e2202 100644
--- a/Sources/VLCMediaPlayer.m
+++ b/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];
--
1.7.12.4 (Apple Git-37)
More information about the vlc-devel
mailing list