mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
add note on windows pipe
Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f6ef62eb7f
commit
40648d8cc3
4
ffmpeg.c
4
ffmpeg.c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user