1. use pthread_cond_t to synchronize main thread and picture thread,
   video thread;