I think I'm missing something about the thread safety of libvlc functions.
When is it safe to call libvlc_media_release? Specifically, if I call libvlc_media_player_get_media, then at some point I will need to release the returned media, but there is no locking in libvlc_media_release to protect the media's ref count. I see that media_player's function are careful to lock the media_player's object mutex before retaining or releasing the media, but I see no way to lock on that mutex from outside the player. Do I need to not release the media until after the player's media has been changed with libvlc_media_player_set_media? That seems like a big burden... I hope I'm just misunderstanding something.