tdm_test_server_pp *p = NULL, *pp = NULL;
tdm_test_server_capture *c = NULL, *cc = NULL;
tdm_test_server_prop *w = NULL, *ww = NULL;
+ tdm_error ret;
int i;
LIST_FOR_EACH_ENTRY_SAFE(c, cc, &data->capture_list, link) {
LIST_FOR_EACH_ENTRY_SAFE(o, oo, &data->output_list, link) {
LIST_FOR_EACH_ENTRY_SAFE(l, ll, &o->layer_list, link) {
- tdm_layer_unset_buffer(l->layer);
+ ret = tdm_layer_unset_buffer(l->layer);
+ TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
}
tdm_layer_commit(l->layer, NULL, NULL);
}
TDM_EXIT_IF_FAIL(tb != NULL);
tb->in_use = 1;
- tdm_buffer_add_release_handler(b, layer_cb_buffer_release, NULL);
+ ret = tdm_buffer_add_release_handler(b, layer_cb_buffer_release, NULL);
+ TDM_EXIT_IF_FAIL(ret == TDM_ERROR_NONE);
if (data->do_vblank)
ret = tdm_layer_commit(l->layer, layer_cb_commit, l);
printf("enter test loop\n");
- while (1)
- tdm_display_handle_events(data->display);
+ while (1) {
+ ret = tdm_display_handle_events(data->display);
+ TDM_EXIT_IF_FAIL(ret == TDM_ERROR_NONE);
+ }
destroy(data);