[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.
This commit is contained in:
Marty Oehme 2020-05-12 22:49:56 +02:00
parent 9e1bc94025
commit 5837303c96
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A

View file

@ -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)