fix drawing bug. draw an image twice on widget
video thread sleep a little to wait the audio

if not, video thread will loop many times in a small time. sleep some
million seconds is ok.
null audio support

TODO: add an api AVOutput::isAvailable() instead of checking null
the missing initialization for AVClock