/* LCOV_EXCL_STOP */
}
+ ret = tdm_output_add_change_handler(output, _tdm_server_cb_output_change, output_info);
+ if (ret != TDM_ERROR_NONE) {
+ wl_resource_post_no_memory(resource);
+ wl_resource_destroy(output_resource);
+ free(output_info);
+ TDM_ERR("tdm_output_add_change_handler failed");
+ return;
+ }
+
LIST_ADDTAIL(&output_info->link, &private_server->output_list);
output_info->private_server = private_server;
output_info->resource = output_resource;
output_info->output = output;
LIST_INITHEAD(&output_info->vblank_list);
- tdm_output_add_change_handler(output, _tdm_server_cb_output_change, output_info);
-
wl_resource_set_implementation(output_resource, &tdm_output_implementation,
output_info, destroy_output_callback);