diff options
author | wm4 <wm4@nowhere> | 2019-09-29 02:24:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-29 02:24:29 +0200 |
commit | 3b13a4799314fba316bcd4e7abce2685415c262b (patch) | |
tree | 90c520398373d174a0d21fd9adbfd7f56301adaa /test | |
parent | a604dc12be13af547572f18b9e09222eeda193c9 (diff) | |
download | mpv-3b13a4799314fba316bcd4e7abce2685415c262b.tar.bz2 mpv-3b13a4799314fba316bcd4e7abce2685415c262b.tar.xz |
loadfile: don't always accidentally always prefetching
demux_start_prefetch() was called unconditionally in two cases. This is
completely wrong. I'm not sure what part of my brain died off that
something this obviously wrong went in.
The prefetch case is a bit more complicated. It's a different thread, so
you can't access just access mpctx->opts there. So add an explicit field
for this, which is the simplest way to get this done. (Even if it's bad
factoring.)
Fixes: c1f1a0845e03885eebe63
Fixes: 556e204a112ee286972e5
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions