diff options
author | wm4 <wm4@nowhere> | 2019-09-29 02:30:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-29 02:36:02 +0200 |
commit | eb3aed7cf8be8d13aca65f19c5b0aff1ecd868fc (patch) | |
tree | c6449780efd8ff895fdeeeac647d577e934b5b92 /misc/dispatch.c | |
parent | 3b13a4799314fba316bcd4e7abce2685415c262b (diff) | |
download | mpv-eb3aed7cf8be8d13aca65f19c5b0aff1ecd868fc.tar.bz2 mpv-eb3aed7cf8be8d13aca65f19c5b0aff1ecd868fc.tar.xz |
loadfile: make prefetching actually work
Looks like this didn't actually work. Prefetching will do nothing if
there isn't a thread to "drive" it, and the demuxer thread needs to be
explicitly enabled. (I guess I did the worst possible job in verifying
whether this actually worked when I implemented it. On the other hand,
the user didn't confirm back whether it worked, so who cares.)
Like in the previous commit, bad factoring makes everything worse. It
duplicates logic and implementation of enable_demux_thread(), since the
opener thread cannot access the mpctx->opts field freely. But it's deep
night, so fuck it.
Fixes: c1f1a0845e03885e
Fixes: #6753
Diffstat (limited to 'misc/dispatch.c')
0 files changed, 0 insertions, 0 deletions