if (ret != TDM_ERROR_NONE) {
/* LCOV_EXCL_START */
TDM_ERR("failed: layer set info(window)");
+ _pthread_mutex_unlock(&private_display->lock);
/* LCOV_EXCL_STOP */
return ret;
}
if (ret != TDM_ERROR_NONE) {
/* LCOV_EXCL_START */
TDM_ERR("failed: layer set info(window)");
+ _pthread_mutex_unlock(&private_display->lock);
/* LCOV_EXCL_STOP */
return ret;
}
if (!output_hwc_target_buffer_commit_handler) {
/* LCOV_EXCL_START */
TDM_ERR("failed: alloc memory");
+ _pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_OUT_OF_MEMORY;
/* LCOV_EXCL_STOP */
}
/* LCOV_EXCL_START */
TDM_ERR("failed: commit layer(target buffer)");
free(output_hwc_target_buffer_commit_handler);
+ _pthread_mutex_unlock(&private_display->lock);
/* LCOV_EXCL_STOP */
return ret;
}