public MediaList(IntPtr hMediaList, ReferenceCountAction action) { m_hMediaList = hMediaList; switch (action) { case ReferenceCountAction.AddRef: this.AddRef(); break; case ReferenceCountAction.Release: this.Release(); break; } }
public BasicMedia(IntPtr hMedia, ReferenceCountAction refCountAction) { m_hMedia = hMedia; m_path = LibVlcMethods.libvlc_media_get_mrl(m_hMedia); switch (refCountAction) { case ReferenceCountAction.AddRef: AddRef(); break; case ReferenceCountAction.Release: Release(); break; } }
public BasicMedia(IntPtr hMedia, ReferenceCountAction refCountAction) { m_hMedia = hMedia; IntPtr pData = LibVlcMethods.libvlc_media_get_mrl(m_hMedia); m_path = Marshal.PtrToStringAnsi(pData); switch (refCountAction) { case ReferenceCountAction.AddRef: AddRef(); break; case ReferenceCountAction.Release: Release(); break; } }