The wl_eglstream_display::caps event currently ends up containing random garbage data, because the wl_eglstream_display_bind never initializes the supported_caps field value before it starts setting bits on it.
This changes it to use calloc to just zero the whole wl_eglstream_display struct before it starts filling anything in.
The wl_eglstream_display::caps event currently ends up containing random garbage data, because the wl_eglstream_display_bind never initializes the supported_caps field value before it starts setting bits on it.
This changes it to use calloc to just zero the whole wl_eglstream_display struct before it starts filling anything in.