Пример #1
0
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);
}
Пример #2
0
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);
}
Пример #3
0
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);
}