Skip to content
Snippets Groups Projects
Commit 40648d8c authored by rogerdpack's avatar rogerdpack Committed by Michael Niedermayer
Browse files

add note on windows pipe

parent f6ef62eb
No related branches found
No related tags found
No related merge requests found
...@@ -369,8 +369,10 @@ static int read_key(void) ...@@ -369,8 +369,10 @@ static int read_key(void)
} }
if (is_pipe) { if (is_pipe) {
/* When running under a GUI, you will end here. */ /* When running under a GUI, you will end here. */
if (!PeekNamedPipe(input_handle, NULL, 0, NULL, &nchars, NULL)) if (!PeekNamedPipe(input_handle, NULL, 0, NULL, &nchars, NULL)) {
// input pipe may have been closed by the program that ran ffmpeg
return -1; return -1;
}
//Read it //Read it
if(nchars != 0) { if(nchars != 0) {
read(0, &ch, 1); read(0, &ch, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment