summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-17 12:40:33 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:34 +0200
commit34259f11dcabb02eac74feb62589f8295011c7f7 (patch)
tree2d6bc9b8167c291f59437fe8ad001cd731389b2e /libmpv
parentc9fcd20959ef8d0463be0599e8596002ae68ffd2 (diff)
downloadmpv-34259f11dcabb02eac74feb62589f8295011c7f7.tar.bz2
mpv-34259f11dcabb02eac74feb62589f8295011c7f7.tar.xz
stream_file: properly detect stdin as pipe
There is some code that checks a FD for whether it is a regular file or not. If it's not a regular file, it e.g. enables use of poll() to avoid blocking forever. But this was done only for FDs that were open()ed by us, not from stdin special handling or fd://. Consequently, " | mpv -" could block the player. Fix this by moving the code and running for it on all FDs. Also, set p->regular_file even on mingw.
Diffstat (limited to 'libmpv')
0 files changed, 0 insertions, 0 deletions