Fixed output example in Windows.

This commit is contained in:
Gonzalo Exequiel Pedone 2021-10-04 15:52:35 -03:00
parent 4910b07139
commit f4a605ee6c
No known key found for this signature in database
GPG key ID: B8B09E63E9B85BAF

View file

@ -40,18 +40,19 @@ struct StreamProcess
{ {
HANDLE stdinReadPipe; HANDLE stdinReadPipe;
HANDLE stdinWritePipe; HANDLE stdinWritePipe;
SECURITY_ATTRIBUTES pipeAttributes; struct SECURITY_ATTRIBUTES pipeAttributes;
STARTUPINFOA startupInfo; struct STARTUPINFOA startupInfo;
PROCESS_INFORMATION procInfo; struct PROCESS_INFORMATION procInfo;
}; };
int main() int main()
{ {
// Set the parameters of the stream. // Set the parameters of the stream.
const char cmd[1024]; char cmd[1024];
const char format[] = "RGB24"; const char format[] = "RGB24";
int width = 640; int width = 640;
int height = 480; int height = 480;
memset(cmd, 0, 1024);
snprintf(cmd, snprintf(cmd,
1024, 1024,
"AkVCamManager stream %s %s %d %d", "AkVCamManager stream %s %s %d %d",