summaryrefslogtreecommitdiffstats
path: root/DOCS/man/vo.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-12 22:16:19 +0200
committerwm4 <wm4@nowhere>2015-05-12 22:16:19 +0200
commitee3de1a063c281c1c915f204756d518966afdd54 (patch)
treef7a6d67353b451e93637965e07e4739a17871a83 /DOCS/man/vo.rst
parent4d9255a5e1a1c5be805800070a79ef1bcc1a150a (diff)
downloadmpv-ee3de1a063c281c1c915f204756d518966afdd54.tar.bz2
mpv-ee3de1a063c281c1c915f204756d518966afdd54.tar.xz
vo_opengl_cb: add a "block" framedrop mode and make it default
(I have no idea why there are different modes.) Instead of risking to drop frames too early, give it some margin. Since there are situations this could deadlock, wait with a timeout. This can happen if e.g. the API user is refusing to render anything, or if uninitialization is happening.
Diffstat (limited to 'DOCS/man/vo.rst')
-rw-r--r--DOCS/man/vo.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst
index 6e1d89fade..874e064145 100644
--- a/DOCS/man/vo.rst
+++ b/DOCS/man/vo.rst
@@ -898,13 +898,15 @@ Available video output drivers are:
``frame-queue-size=<1..100>``
The maximum count of frames which the frame queue can hold (default: 1)
- ``frame-drop-mode=<pop|clear>``
+ ``frame-drop-mode=<pop|clear|block>``
Select the behavior when the frame queue is full.
pop
- Drop the oldest frame in the frame queue. (default)
+ Drop the oldest frame in the frame queue.
clear
Drop all frames in the frame queue.
+ block
+ Wait for a short time, behave like ``clear`` on timeout. (default)
This also supports many of the suboptions the ``opengl`` VO has. Run
``mpv --vo=opengl-cb:help`` for a list.