Browse Source

obs-outputs: Increase GetAdaptersAddresses buffer size

4096 is too small for most systems to do this in a single call.
Richard Stanway 6 years ago
parent
commit
15895bfb76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-outputs/net-if.c

+ 1 - 1
plugins/obs-outputs/net-if.c

@@ -175,7 +175,7 @@ static inline PIP_ADAPTER_ADDRESSES get_adapters(void)
 {
 	PIP_ADAPTER_ADDRESSES adapter = NULL;
 	unsigned long ret = 0;
-	unsigned long out_buf_len = 4096;
+	unsigned long out_buf_len = 16384;
 	unsigned long flags =
 		GAA_FLAG_SKIP_ANYCAST |
 		GAA_FLAG_SKIP_MULTICAST |