summaryrefslogtreecommitdiffstats
path: root/stream/frequencies.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-17 12:40:33 +0200
committersfan5 <sfan5@live.de>2018-05-25 10:47:46 +0200
commit5a4a69cb58f78f56f8e45f2b254b9a00e4274cae (patch)
tree461a90b03491f4c339f4c4ec79e93a77f8f3ae01 /stream/frequencies.c
parentfba98cfb052aed43880aa2cab29bd712a6cfb49c (diff)
downloadmpv-5a4a69cb58f78f56f8e45f2b254b9a00e4274cae.tar.bz2
mpv-5a4a69cb58f78f56f8e45f2b254b9a00e4274cae.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 'stream/frequencies.c')
0 files changed, 0 insertions, 0 deletions