more licensing stuff

some code, probably about right for the VLC team to play with (and maybe decide to give me some kind of access to what I'm trying to fix).