I am creating a application in C#, using NativeLibVLC.cs class. I am trying to get the input thread using following code.
Code: Select all
using (VlcPlaylistObject vpobj = new VlcPlaylistObject(this.vlcHandle))
{
if (vpobj.SubObject != IntPtr.Zero)
{
IntPtr p_input = libvlc_playlist_get_input(ref vpobj.libvlc, ref vpobj.exception);
MessageBox.Show(Marshal.PtrToStringAnsi(vpobj.exception.psz_message));
input_item_t ttt = (input_item_t)Marshal.PtrToStructure(p_input, typeof(input_item_t));
IntPtr IpThread = libvlc_get_input_thread(p_input, ref vpobj.exception);
input_thread_t tt2t = (input_thread_t)Marshal.PtrToStructure(IpThread, typeof(input_thread_t));
}
}
Am I missing anything here?? I am using 0.8.6.i version of VLC.
Thanks,
Ram