patches/vlc: fix for freezes and leaks