Crash on libvlc_video_get_marquee_int call
Posted: 01 Mar 2015 15:14
Hello!
I use my own little player based on VLC and written on C# on windows: https://github.com/sibvic/watchitonce
I've tried to show the current time on the video (using marguee) and it look like LibVLC crashes when I call libvlc_video_get_marquee_int
libvlc_video_set_marquee_int works fine.
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_marquee_int(IntPtr p_mi, libvlc_video_marquee_option_t option);
I do pass into the p_mi a valid player handle and 0 as an option and get this error:
An unhandled exception of type 'System.AccessViolationException' occurred in LibVlcWrapper.dll
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I can't figure out why I get this error. Everything else works fine. Is there any way to turn some king of libvlc logging on?
How can II figure out why it's crashing without compiling the libvlc by myself? I'm a C++ developer but it's pretty hard to compile libvlc on Windows so I hope I can avoid this.
I use libvlc.dll from VLC player v.2.1.2
I use my own little player based on VLC and written on C# on windows: https://github.com/sibvic/watchitonce
I've tried to show the current time on the video (using marguee) and it look like LibVLC crashes when I call libvlc_video_get_marquee_int
libvlc_video_set_marquee_int works fine.
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_get_marquee_int(IntPtr p_mi, libvlc_video_marquee_option_t option);
I do pass into the p_mi a valid player handle and 0 as an option and get this error:
An unhandled exception of type 'System.AccessViolationException' occurred in LibVlcWrapper.dll
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I can't figure out why I get this error. Everything else works fine. Is there any way to turn some king of libvlc logging on?
How can II figure out why it's crashing without compiling the libvlc by myself? I'm a C++ developer but it's pretty hard to compile libvlc on Windows so I hope I can avoid this.
I use libvlc.dll from VLC player v.2.1.2