static inline void update_settings(struct monitor_capture *capture, obs_data_t settings) { capture->capture_cursor = obs_data_getbool(settings, "capture_cursor"); capture->compatibility = obs_data_getbool(settings, "compatibility"); dc_capture_free(&capture->data); update_monitor(capture, settings); }
static void monitor_capture_destroy(void *data) { struct monitor_capture *capture = data; obs_enter_graphics(); dc_capture_free(&capture->data); obs_leave_graphics(); bfree(capture); }
static void monitor_capture_destroy(void *data) { struct monitor_capture *capture = data; gs_entercontext(obs_graphics()); dc_capture_free(&capture->data); effect_destroy(capture->opaque_effect); gs_leavecontext(); bfree(capture); }