summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-25 21:37:43 +0200
committerwm4 <wm4@nowhere>2014-08-25 21:39:24 +0200
commit6410c4c8efbb659692ef70bc94c1190b9c08117d (patch)
treee00f1f875cead259f2e3b9c15d52c031366979b0
parentf104ef12827278c5620b57a34d066b333bbdfa32 (diff)
downloadmpv-6410c4c8efbb659692ef70bc94c1190b9c08117d.tar.bz2
mpv-6410c4c8efbb659692ef70bc94c1190b9c08117d.tar.xz
input: stdin is 0, not 1
Oops. I can never remember this right.
-rw-r--r--input/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/pipe.c b/input/pipe.c
index a961debba7..3740c22168 100644
--- a/input/pipe.c
+++ b/input/pipe.c
@@ -41,7 +41,7 @@ static void *reader_thread(void *ctx)
int fd = -1;
bool close_fd = true;
if (strcmp(p->filename, "/dev/stdin") == 0) { // mainly for win32
- fd = 1;
+ fd = fileno(stdin);
close_fd = false;
}
if (fd < 0)