It is no longer available to pass a null wl_array since wayland@1.22.0.
Change-Id: Id86d93993e2d641b028c94440b0ba6ffd1f95c95
if (rs->version >= TIZEN_REMOTE_SURFACE_CHANGED_BUFFER_SINCE_VERSION)
{
+ wl_array_init(&opts);
if (rs->req_curr_buff.set)
{
/* example of option list:
* [1] "257"
* [2] "opt_none"
*/
- wl_array_init(&opts);
p = wl_array_add(&opts, 21);
if (p) strncpy(p, "curr_buff_req_serial", 21);
img_file_fd,
img_file_size,
e_util_timestamp_get(),
- add_opts ? &opts : NULL);
+ &opts);
+ wl_array_release(&opts);
}
else
tizen_remote_surface_send_update_buffer(rs->resource,
e_util_timestamp_get());
}
- if (add_opts)
- wl_array_release(&opts);
return send;
}