Commit 085cf625 authored by Martin Finkel's avatar Martin Finkel

LibVLC: Add Retain() binding

(cherry picked from commit c8ab0aa017644db5f09ba49e31da2635c78a7535)
parent badbe146
......@@ -139,6 +139,11 @@ namespace LibVLCSharp.Shared
EntryPoint = "libvlc_renderer_discoverer_list_release")]
internal static extern void LibVLCRendererDiscovererReleaseList(IntPtr discovererList, ulong count);
[DllImport(Constants.LibraryName, CallingConvention = CallingConvention.Cdecl,
EntryPoint = "libvlc_retain")]
internal static extern void LibVLCRetain(IntPtr libVLC);
#if ANDROID
[DllImport(Constants.LibraryName, CallingConvention = CallingConvention.Cdecl,
EntryPoint = "libvlc_media_player_set_android_context")]
......@@ -617,6 +622,9 @@ namespace LibVLCSharp.Shared
module = modulePtr.FromUtf8();
file = filePtr.FromUtf8();
}
/// <summary>Increments the native reference counter for this libvlc instance</summary>
public void Retain() => Native.LibVLCRetain(NativeReference);
}
/// <summary>Logging messages level.</summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment