Browse Source

win-capture: Do not require pipe/mutex within hook

Named pipes cannot be used within UWP programs, so make them optional.
jp9000 9 years ago
parent
commit
4ec1033741
1 changed files with 2 additions and 6 deletions
  1. 2 6
      plugins/win-capture/graphics-hook/graphics-hook.c

+ 2 - 6
plugins/win-capture/graphics-hook/graphics-hook.c

@@ -237,15 +237,11 @@ static inline bool init_hook(HANDLE thread_handle)
 	sprintf(keepalive_name, "%s%lu", EVENT_HOOK_KEEPALIVE,
 			GetCurrentProcessId());
 
-	if (!init_pipe()) {
-		return false;
-	}
+	init_pipe();
 	if (!init_signals()) {
 		return false;
 	}
-	if (!init_mutexes()) {
-		return false;
-	}
+	init_mutexes();
 	if (!init_system_path()) {
 		return false;
 	}