1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00
mpv/DOCS
wm4 9bcb9fcf26 player: make screenshot commands honor the async flag
And also change input.conf to make all screenshots async. (Except the
every-frame mode, which always uses synchronous mode and ignores the
flag.) By default, the "screenshot" command is still asynchronous,
because scripts etc. might depend on this behavior.

This is only partially async. The code for determining the filename is
still always run synchronously. Only encoding the screenshot and writing
it to disk is asynchronous. We explicitly document the exact behavior as
undefined, so it can be changed any time.

Some of this is a bit messy, because I wanted to avoid duplicating the
message display code between sync and async mode. In async mode, this is
called from a worker thread, which is not safe because showing a message
accesses the thread-unsafe OSD code. So the core has to be locked during
this, which implies accessing the core and all that. So the code has
weird locking calls, and we need to do core destruction in a more
"controlled" manner (thus the outstanding_async field).

(What I'd really want would be the OSD simply showing log messages
instead.)

This is pretty untested, so expect bugs.

Fixes #4250.
2017-04-01 20:47:23 +02:00
..
man player: make screenshot commands honor the async flag 2017-04-01 20:47:23 +02:00
client-api-changes.rst client API: turn mpv_suspend() and mpv_resume() into stubs 2016-11-22 15:54:44 +01:00
compile-windows.md DOCS/compile-windows: be more specific about the D3D compiler DLL 2016-11-23 01:23:12 +01:00
contribute.md DOCS/contribute.md: adjust coding style for if/else bracing 2017-02-11 16:48:29 +01:00
edl-mpv.rst DOCS/edl-mpv.rst: fix typo 2017-02-05 16:02:58 +01:00
encoding.rst
interface-changes.rst osx: fix key input in certain circumstances 2017-03-26 20:38:26 +02:00
mplayer-changes.rst af_drc: remove 2017-03-25 12:57:10 +01:00
release-policy.md DOCS/release-policy.md: reminder to update certain version numbers 2016-08-07 19:43:57 +02:00
tech-overview.txt Fix misspellings 2016-06-26 13:47:21 +02:00
waf-buildsystem.rst DOCS/waf-buildsystem.rst: fix typo 2017-02-15 10:41:26 +01:00