Correct possible crash when clicking button/Ctrl while playback running.
Also lightlty simplify playback control
Merge pull request #165 from Ptizef/master

Correct possible crash when clicking button/Ctrl while playback running.