summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-14 00:58:06 +0100
committerwm4 <wm4@nowhere>2013-12-14 00:58:06 +0100
commit1948131a2a7372ffd310f71edf12c25632a05403 (patch)
treeeeb1b5941679d990c4d626a50c0cd27ac6068b3c /stream/stream.h
parent9a723fc03b5b8114abca2bfa7aa8b54f111d6702 (diff)
downloadmpv-1948131a2a7372ffd310f71edf12c25632a05403.tar.bz2
mpv-1948131a2a7372ffd310f71edf12c25632a05403.tar.xz
cache: try harder on EOF
EOF is a special case. Normally, the reader will block until the cache thread has new data. Obviously we don't want to do this on EOF, because we'd potentially block forever. On the other hand, EOF will put the cache thread into a waiting state, so if EOF recovers, this will happen at a "later" point. This is bad if there is some kind of external event that ends the EOF condition. In this case, a steram_read() call would still return EOF. Make it so that the reader waits at least for one iteration of the cache trying to rad a new block. Also adjust some debug messages to not print file positions in hex.
Diffstat (limited to 'stream/stream.h')
0 files changed, 0 insertions, 0 deletions