From e277fadd60350caad1fc31e92a5076692e61dcc9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Jan 2017 19:02:50 +0100 Subject: player: add prefetching of the next playlist entry Since for mpv CLI, the player state is a singleton, full prefetching is a bit tricky. We do it only on the demuxer layer. The implementation reuses the old "open thread". This means there is significant potential for regressions even if the new option is not used. This is made worse by the fact that I barely tested this code. The generic mpctx_run_reentrant() wrapper is also removed - this was its only user, and its remains become part of the new implementation. --- options/options.c | 1 + 1 file changed, 1 insertion(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index bc9ddf8614..6afe611c6d 100644 --- a/options/options.c +++ b/options/options.c @@ -383,6 +383,7 @@ const m_option_t mp_opts[] = { OPT_STRING("audio-demuxer", audio_demuxer_name, 0), OPT_STRING("sub-demuxer", sub_demuxer_name, 0), OPT_FLAG("demuxer-thread", demuxer_thread, 0), + OPT_FLAG("prefetch-playlist", prefetch_open, 0), OPT_FLAG("cache-pause", cache_pausing, 0), OPT_DOUBLE("mf-fps", mf_fps, 0), -- cgit v1.2.3