adapt code for pyglet 1.2a1
Merge branch 'master' of https://github.com/delguoqing/PyLMPlayer