Moving sleep on video thread to after decoding