_pthread_mutex_lock(&private_display->lock);
if (!(private_display->capabilities & TDM_DISPLAY_CAPABILITY_PP)) {
+ /* LCOV_EXCL_START */
TDM_ERR("no pp capability");
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_NO_CAPABILITY;
+ /* LCOV_EXCL_STOP */
}
*capabilities = private_display->caps_pp.capabilities;
_pthread_mutex_lock(&private_display->lock);
if (!(private_display->capabilities & TDM_DISPLAY_CAPABILITY_PP)) {
+ /* LCOV_EXCL_START */
TDM_ERR("no pp capability");
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_NO_CAPABILITY;
+ /* LCOV_EXCL_STOP */
}
*formats = (const tbm_format *)private_display->caps_pp.formats;
_pthread_mutex_lock(&private_display->lock);
if (!(private_display->capabilities & TDM_DISPLAY_CAPABILITY_PP)) {
+ /* LCOV_EXCL_START */
TDM_ERR("no pp capability");
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_NO_CAPABILITY;
+ /* LCOV_EXCL_STOP */
}
if (min_w)
_pthread_mutex_lock(&private_display->lock);
if (!(private_display->capabilities & TDM_DISPLAY_CAPABILITY_CAPTURE)) {
+ /* LCOV_EXCL_START */
TDM_ERR("no capture capability");
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_NO_CAPABILITY;
+ /* LCOV_EXCL_STOP */
}
*capabilities = private_display->caps_capture.capabilities;
_pthread_mutex_lock(&private_display->lock);
if (!(private_display->capabilities & TDM_DISPLAY_CAPABILITY_CAPTURE)) {
+ /* LCOV_EXCL_START */
TDM_ERR("no capture capability");
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_NO_CAPABILITY;
+ /* LCOV_EXCL_STOP */
}
*formats = (const tbm_format *)private_display->caps_capture.formats;
_pthread_mutex_lock(&private_display->lock);
if (!(private_display->capabilities & TDM_DISPLAY_CAPABILITY_CAPTURE)) {
+ /* LCOV_EXCL_START */
TDM_ERR("no capture capability");
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_NO_CAPABILITY;
+ /* LCOV_EXCL_STOP */
}
if (min_w)
(*count)++;
if (*count == 0) {
+ /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_NONE;
+ /* LCOV_EXCL_STOP */
}
_pthread_mutex_unlock(&private_display->lock);
TDM_INFO("fd(%d) polling in", fd);
while (poll(&fds, 1, -1) < 0) {
+ /* LCOV_EXCL_START */
if (errno == EINTR || errno == EAGAIN) /* normal case */
continue;
else {
TDM_ERR("poll failed: %m");
return TDM_ERROR_OPERATION_FAILED;
}
+ /* LCOV_EXCL_STOP */
}
if (tdm_debug_module & TDM_DEBUG_THREAD)