From f4a605ee6ca12b5ae07ec1c4505289b21b545434 Mon Sep 17 00:00:00 2001 From: Gonzalo Exequiel Pedone Date: Mon, 4 Oct 2021 15:52:35 -0300 Subject: [PATCH] Fixed output example in Windows. --- share/examples/output_windows.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/share/examples/output_windows.c b/share/examples/output_windows.c index 338d544..abc1376 100644 --- a/share/examples/output_windows.c +++ b/share/examples/output_windows.c @@ -40,18 +40,19 @@ struct StreamProcess { HANDLE stdinReadPipe; HANDLE stdinWritePipe; - SECURITY_ATTRIBUTES pipeAttributes; - STARTUPINFOA startupInfo; - PROCESS_INFORMATION procInfo; + struct SECURITY_ATTRIBUTES pipeAttributes; + struct STARTUPINFOA startupInfo; + struct PROCESS_INFORMATION procInfo; }; int main() { // Set the parameters of the stream. - const char cmd[1024]; + char cmd[1024]; const char format[] = "RGB24"; int width = 640; int height = 480; + memset(cmd, 0, 1024); snprintf(cmd, 1024, "AkVCamManager stream %s %s %d %d",