diff --git a/src/screencast/screencast.c b/src/screencast/screencast.c index 8966c47..75856c7 100644 --- a/src/screencast/screencast.c +++ b/src/screencast/screencast.c @@ -95,9 +95,7 @@ int setup_outputs(struct xdpw_screencast_context *ctx, struct xdpw_session *sess } -static int start_screencast(void *data) { - struct xdpw_screencast_instance *cast = data; - +static int start_screencast(struct xdpw_screencast_instance *cast) { xdpw_wlr_register_cb(cast); // process at least one frame so that we know