Hi.
I'm trying to play a video on an SDL surface. So far, I got everything working except for one detail: I need to maintain the aspect ratio without changing the surface's size, which means I need to retrieve the width and height of the video before creating the intermediate surface. The problem is that no matter what I do, I can't get libvlc_video_get_width() to not throw an exception (of the libvlc_exception_t kind, not a C++ exception) when I call it. My code is based on http://wiki.videolan.org/LibVLC_SampleCode_SDL. If I call it after libvlc_media_release(), I get "Input is NULL", and if I call it after libvlc_media_player_play(), I get "No active video output".
Any ideas?
By the way, where can I find some documentation on libvlc_new()? Specifically, the arguments it takes. I've looked around, but I can't find anything.