Error in accessing input thread
Posted: 14 May 2009 14:23
Hi,
I am creating a application in C#, using NativeLibVLC.cs class. I am trying to get the input thread using following code.
but I am getting "0" value from "libvlc_playlist_get_input" function , I checked vpobj.exception.psz_message and the text was "No active input". But the application was playing a streamed video.
Am I missing anything here?? I am using 0.8.6.i version of VLC.
Thanks,
Ram
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