Commit c2e8e530 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Win32: put duplicated file handles to binary mode

This is more consistent with vlc_open() and vlc_pipe() behaviour.
parent 631093e2
......@@ -263,7 +263,10 @@ out:
int vlc_dup (int oldfd)
return dup (oldfd);
int fd = dup (oldfd);
if (fd != -1)
setmode (fd, O_BINARY);
return fd;
int vlc_pipe (int fds[2])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment