From cca34bfb4e4de8e09eb76ed568a72132586930d0 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 5 Jan 2015 14:15:34 -0800 Subject: [PATCH] win-capture: Fix bug with GDI monitor capture With the new code that checks to see if the source is visible, I didn't realize that I actually didn't set the source variable, so it would end up never actually drawing. --- plugins/win-capture/monitor-capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/win-capture/monitor-capture.c b/plugins/win-capture/monitor-capture.c index 89308599b..919391e39 100644 --- a/plugins/win-capture/monitor-capture.c +++ b/plugins/win-capture/monitor-capture.c @@ -132,10 +132,10 @@ static void *monitor_capture_create(obs_data_t *settings, obs_source_t *source) capture = bzalloc(sizeof(struct monitor_capture)); capture->opaque_effect = opaque_effect; + capture->source = source; update_settings(capture, settings); - UNUSED_PARAMETER(source); return capture; }