Explorar el Código

obs-outputs: Fix 100% CPU usage with new network code

Richard Stanway hace 8 años
padre
commit
e63edcd436
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      plugins/obs-outputs/rtmp-windows.c

+ 2 - 1
plugins/obs-outputs/rtmp-windows.c

@@ -321,13 +321,14 @@ static inline void socket_thread_windows_internal(struct rtmp_stream *stream)
 
 				switch (ret) {
 				case RET_BREAK:
-					break;
+					goto exit_write_loop;
 				case RET_FATAL:
 					return;
 				case RET_CONTINUE:;
 				}
 			}
 		}
+		exit_write_loop:;
 	}
 
 	blog(LOG_INFO, "socket_thread_windows: Normal exit");