From 5837303c9613a3e15de1698e58f3e717e1caaac6 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 12 May 2020 22:49:56 +0200 Subject: [PATCH] [mpv] Fix mpv opening time for streams Fixed mpv taking ages to open for ytdl streams. (or anything else which takes a while to load) Mpv had to wait until it had enough buffer to begin playing and only then would open its main window. With this fix it immediately opens the window, and starts playing whenever it is ready. --- {scripts => mpv}/.local/bin/umpv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {scripts => mpv}/.local/bin/umpv (97%) diff --git a/scripts/.local/bin/umpv b/mpv/.local/bin/umpv similarity index 97% rename from scripts/.local/bin/umpv rename to mpv/.local/bin/umpv index 0080b44..2053aa0 100755 --- a/scripts/.local/bin/umpv +++ b/mpv/.local/bin/umpv @@ -90,7 +90,7 @@ else: os.mkfifo(FIFO, 0o600) opts = (os.getenv("MPV") or "mpv").split() - opts.extend(["--no-terminal", "--force-window", "--input-file=" + FIFO, + opts.extend(["--no-terminal", "--force-window=immediate", "--input-file=" + FIFO, "--"]) opts.extend(files)