Change-Id: I6065525f76796603856f5cebf0468f4a59c4b5b5
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
pthread_mutex_lock(&encode_mutex);
srcsurface_status[display_order % SURFACE_NUM] = SRC_SURFACE_IN_ENCODING;
- pthread_cond_signal(&encode_cond);
pthread_mutex_unlock(&encode_mutex);
}
/* check if the source frame is ready */
while (srcsurface_status[current_slot] != SRC_SURFACE_IN_ENCODING) {
- pthread_mutex_lock(&encode_mutex);
- pthread_cond_wait(&encode_cond, &encode_mutex);
- pthread_mutex_unlock(&encode_mutex);
+ usleep(1);
}
tmp = GetTickCount();