浏览代码

VLCLibrary: do not retain libvlc instance after creation

libvlc_new creates an instance with a ref count of 1 which is sufficient here

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Shenggang Hu 10 年之前
父节点
当前提交
4400aea596
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      Sources/VLCLibrary.m

+ 0 - 2
Sources/VLCLibrary.m

@@ -94,8 +94,6 @@ static VLCLibrary * sharedLibrary = nil;
         paramNum++;
         paramNum++;
     }
     }
     _instance = libvlc_new(count, lib_vlc_params);
     _instance = libvlc_new(count, lib_vlc_params);
-    if (_instance)
-        libvlc_retain(_instance);
 
 
     NSAssert(_instance, @"libvlc failed to initialize");
     NSAssert(_instance, @"libvlc failed to initialize");
 }
 }