public VlcMediaPlayerInternal CreateVlcMediaPlayerInternal() { IntPtr mediaplayerDescriptor = LibVlcInterop.libvlc_media_player_new(vlclibDescriptor); if (mediaplayerDescriptor == IntPtr.Zero) { throw new VlcInternalException(LibVlcInterop.libvlc_errmsg()); } // return(new VlcMediaPlayerInternal(mediaplayerDescriptor)); }
public VlcMediaPlayerInternal CreateVlcMediaPlayerInternal() { libvlc_exception_t exc = new libvlc_exception_t(); LibVlcInterop.libvlc_exception_init(ref exc); IntPtr mediaplayerDescriptor = LibVlcInterop.libvlc_media_player_new(vlclibDescriptor, ref exc); if (exc.b_raised != 0) { throw new VlcInternalException(exc.Message); } // return(new VlcMediaPlayerInternal(mediaplayerDescriptor)); }