From c1289b893eb033f2e3a2cde27e791545b137c391 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 5 Jan 2015 01:15:16 -0800 Subject: [PATCH] win-capture: Log more hooking errors Adds a few previously-missing log messages that specify the actual reason why there was an error acquiring the hook, rather than just saying nothing. --- plugins/win-capture/game-capture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/win-capture/game-capture.c b/plugins/win-capture/game-capture.c index 81dbbd308..92b3acc1f 100644 --- a/plugins/win-capture/game-capture.c +++ b/plugins/win-capture/game-capture.c @@ -318,6 +318,7 @@ static void game_capture_update(void *data, obs_data_t *settings) if (cfg.force_scaling && (cfg.scale_cx == 0 || cfg.scale_cy == 0)) { gc->error_acquiring = true; + warn("error acquiring, scale is bad"); } else { gc->error_acquiring = false; } @@ -738,7 +739,8 @@ static void try_hook(struct game_capture *gc) &gc->process_id); if (!gc->thread_id || !gc->process_id) { - warn("failed to get window thread/process ids: %d", + warn("error acquiring, failed to get window " + "thread/process ids: %d", GetLastError()); gc->error_acquiring = true; return;