aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorrogerdpack <rogerpack2005@gmail.com>2012-12-26 12:21:15 -0700
committerMichael Niedermayer <michaelni@gmx.at>2013-01-06 17:47:49 +0100
commit40648d8cc372c328965a2e2e8e5ef8c88cba3e3f (patch)
tree9a530e9771b96e70b394f5d22b070003374b2220 /ffmpeg.c
parentf6ef62eb7f5cccbcb290f3831358d724c2ff7992 (diff)
downloadffmpeg-40648d8cc372c328965a2e2e8e5ef8c88cba3e3f.tar.gz
add note on windows pipe
Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 977218f62a..acaa523170 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -369,8 +369,10 @@ static int read_key(void)
}
if (is_pipe) {
/* 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;
+ }
//Read it
if(nchars != 0) {
read(0, &ch, 1);