mirror of https://github.com/mpv-player/mpv
a4321cf687
Basically reimplement the async behavior on top of the async command code. With this, all screenshot commands are async, and the "async" prefix basically does nothing. The prefix now behaves exactly like with other commands that use spawn_thread. This also means using the prefix in the preset input.conf is pointless (without effect) and misleading, so remove that. The each_frame mode was actually particularly painful in making this change, since the player wants to block for it when writing a screenshot, and generally doesn't fit into the new infrastructure. It was still relatively easy to reimplement by copying the original command and then repeating it on each frame. The waiting is reentrant now, so move the call in video.c to a "safer" spot. One way to observe how the new semantics interact with everything is using the mpv repl script and sending a screenshot command through it. Without async flag, the script will freeze while writing the screenshot (while playback continues), while with async flag it continues. |
||
---|---|---|
.. | ||
builtin.conf | ||
encoding-profiles.conf | ||
input.conf | ||
mplayer-input.conf | ||
mpv-gradient.svg | ||
mpv-icon-8bit-16x16.png | ||
mpv-icon-8bit-32x32.png | ||
mpv-icon-8bit-64x64.png | ||
mpv-icon-8bit-128x128.png | ||
mpv-icon.ico | ||
mpv-symbolic.svg | ||
mpv.conf | ||
mpv.desktop | ||
mpv.svg | ||
restore-old-bindings.conf |