mirror of https://github.com/mpv-player/mpv
input: stdin is 0, not 1
Oops. I can never remember this right.
This commit is contained in:
parent
f104ef1282
commit
6410c4c8ef
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue