_pthread_mutex_lock(&private_display->lock);
if (private_layer->buffer_queue) {
+ _pthread_mutex_unlock(&private_display->lock);
tbm_surface_queue_release(private_layer->buffer_queue,
private_layer->showing_buffer);
+ _pthread_mutex_lock(&private_display->lock);
}
}
if (ret == TDM_ERROR_NONE) {
if (private_layer->waiting_buffer) {
+ TDM_DBG("layer(%p) drop waiting_buffer(%p)", private_layer, private_layer->waiting_buffer);
_pthread_mutex_unlock(&private_display->lock);
tdm_buffer_unref_backend(private_layer->waiting_buffer);
tbm_surface_queue_release(private_layer->buffer_queue,