From ee3de1a063c281c1c915f204756d518966afdd54 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 12 May 2015 22:16:19 +0200 Subject: 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. --- DOCS/man/vo.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'DOCS/man/vo.rst') 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=`` + ``frame-drop-mode=`` 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. -- cgit v1.2.3