update source code

1. fix audio bug
2. add video thread.