LibVLC Sample Code - SDL1.2 works, SDL2 doesn't (Video example included)
Posted: 19 Feb 2019 00:35
I'm trying to get the SDL2 sample code to work. I can get audio, but the window renders blank. But the SDL 1.2 sample works fine. Here's what I've discovered so far
Here is a 2 minute video showing the issue clearly: https://youtu.be/sn14v-4qrrE (Might want to enable 1080p to see the text clearly)
- I am using the SDL 2.0 version linked here, the one halfway down the page
- I changed the 2 #include "SDL/..." entries to be #include "SDL2/..." otherwise it would not compile - which I find strange, shouldn't the SDL2 example refer to SDL2 already?
- I commented out "--no-audio" so that I could get sound
- As a test, I tried the SDL1.2 sample, and got it to work (after using the -fpermissive compiler flag) and I get a window with a video moving in a circle, and a black square on top, so everything works fine in that version.
Here is a 2 minute video showing the issue clearly: https://youtu.be/sn14v-4qrrE (Might want to enable 1080p to see the text clearly)