Change-Id: I67ac16533a0261ed62bb2591ae783e80f74c2e7e
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
output_data->connector_type = TDM_OUTPUT_TYPE_Unknown;
output_data->status = TDM_OUTPUT_CONN_STATUS_DISCONNECTED;
output_data->connector_type = TDM_OUTPUT_TYPE_Unknown;
output_data->status = TDM_OUTPUT_CONN_STATUS_DISCONNECTED;
- if (name) {
- snprintf(voutput_data->name, TDM_NAME_LEN, "%s", name);
- snprintf(output_data->name, TDM_NAME_LEN, "%s", name);
- } else {
- snprintf(voutput_data->name, TDM_NAME_LEN, "unknown");
- snprintf(output_data->name, TDM_NAME_LEN, "%s", name);
- }
+ snprintf(voutput_data->name, TDM_NAME_LEN, "%s", name);
+ snprintf(output_data->name, TDM_NAME_LEN, "%s", name);
output_data->timer = tdm_event_loop_add_timer_handler(virtual_data->dpy,
_tdm_virtual_display_cb_timeout,
output_data->timer = tdm_event_loop_add_timer_handler(virtual_data->dpy,
_tdm_virtual_display_cb_timeout,
return voutput_data;
create_fail:
return voutput_data;
create_fail:
- if (layer_data) free(layer_data);
if (output_data) free(output_data);
if (voutput_data->output_modes) free(voutput_data->output_modes);
if (voutput_data) free(voutput_data);
if (output_data) free(output_data);
if (voutput_data->output_modes) free(voutput_data->output_modes);
if (voutput_data) free(voutput_data);
{
tdm_virtual_voutput_data *voutput_data = voutput;
{
tdm_virtual_voutput_data *voutput_data = voutput;
- RETURN_VAL_IF_FAIL(voutput_data, NULL);
-
if (!voutput_data) {
if (error) *error = TDM_ERROR_INVALID_PARAMETER;
return NULL;
if (!voutput_data) {
if (error) *error = TDM_ERROR_INVALID_PARAMETER;
return NULL;
LIST_FOR_EACH_ENTRY_SAFE(cb, cbb, &private_voutput->buffer_list, link) {
tbm_surface_h tbm_surface = NULL;
LIST_FOR_EACH_ENTRY_SAFE(cb, cbb, &private_voutput->buffer_list, link) {
tbm_surface_h tbm_surface = NULL;
LIST_DEL(&cb->link);
tbm_surface = (tbm_surface_h)wl_buffer_get_user_data(cb->wl_buffer);
LIST_DEL(&cb->link);
tbm_surface = (tbm_surface_h)wl_buffer_get_user_data(cb->wl_buffer);
LIST_DEL(&h->link);
free(h);
LIST_DEL(&h->link);
free(h);
-
- pthread_mutex_unlock(&private_client->lock);
}
pthread_mutex_unlock(&private_client->lock);
}
pthread_mutex_unlock(&private_client->lock);
}
LIST_FOR_EACH_ENTRY(vb, &voutput_info->buffer_list, link) {
}
LIST_FOR_EACH_ENTRY(vb, &voutput_info->buffer_list, link) {
if (vb->wl_buffer)
wl_resource_destroy(vb->wl_buffer);
}
if (vb->wl_buffer)
wl_resource_destroy(vb->wl_buffer);
}