Also, adding a Debug() call here, just like for the one you are doing for libvlc will be probably useful here for troubleshooting purposes.