提交 4f4aea45 编写于 作者: J jp9000

win-capture: Add debug messages when hooking

These are helpful for debugging UWP capture issues.
上级 61773bcb
......@@ -1582,6 +1582,8 @@ static inline bool init_shtex_capture(struct game_capture *gc)
static bool start_capture(struct game_capture *gc)
{
debug("Starting capture");
if (gc->global_hook_info->type == CAPTURE_TYPE_MEMORY) {
if (!init_shmem_capture(gc)) {
return false;
......@@ -1647,6 +1649,7 @@ static void game_capture_tick(void *data, float seconds)
}
if (gc->hook_stop && object_signalled(gc->hook_stop)) {
debug("hook stop signal received");
stop_capture(gc);
}
if (gc->active && deactivate) {
......@@ -1674,10 +1677,13 @@ static void game_capture_tick(void *data, float seconds)
}
if (gc->hook_ready && object_signalled(gc->hook_ready)) {
debug("capture initializing!");
enum capture_result result = init_capture_data(gc);
if (result == CAPTURE_SUCCESS)
gc->capturing = start_capture(gc);
else
debug("init_capture_data failed");
if (result != CAPTURE_RETRY && !gc->capturing) {
gc->retry_interval = ERROR_RETRY_INTERVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册