[VLC plugin] refactoring