At the moment I am trying to open up my first video file in a winform application using this VLC library
As far as I can tell, I have it all set up properly. I have followed all of the source code that the sample projects give and created my winform in the style of the sample project. When I run the project and open up my file, I get a Null Reference Exception
on the following code, namely the line vlcControl.Media = media;
:
if (openFileDialog.ShowDialog(this) == DialogResult.OK)
{
var media = new PathMedia(openFileDialog.FileName);
vlcControl.Media = media;
}
I know null reference errors happen because I haven't initialized something, but to my eyes, media has already been set to a new object. So why is my compiler throwing a fit?
Update I've fixed the issue. I had to rebuild and re-add a dll that had a fix for this issue. Thank you for your help.