I'm trying to take a snapshot from the current media. I see that the LIBVLC_API function libvlc_video_take_snapshot is available to me, but I don't know how to get a hold of a pointer to the current media player (it's a param for the function). I see that I could (or should?) create a new media player using the LIBVLC_API function libvlc_media_player_new_from_media, but I don't know how to get a pointer to the current media.
Can anyone help me figure this out?
(Actually, I really want to create a QPixmap from the current media. If there's a shorter way of doing this, I could use an outline.)