summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-10-05 12:34:47 +0200
committerwm4 <wm4@nowhere>2016-10-05 12:34:47 +0200
commite6291697e3b7d540dcee3cd49100d69d656f696a (patch)
tree6896242d45822ae887c4424b1a7199db8fe90e4f /video/out/vo.h
parent6789f9b09411f83034883357303b4acfda9569ed (diff)
downloadmpv-e6291697e3b7d540dcee3cd49100d69d656f696a.tar.bz2
mpv-e6291697e3b7d540dcee3cd49100d69d656f696a.tar.xz
vo_opengl_cb: don't wait for redrawn frames
This also removes some extra waiting if no video is active, at least in theory. Also clarify the vo_frame flag comments for redraw/repeat.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 5dbdc3fa89..d2393f829b 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -196,8 +196,10 @@ struct vo_frame {
// Set if the current frame is repeated from the previous. It's guaranteed
// that the current is the same as the previous one, even if the image
// pointer is different.
- // The repeat flag is additionally set if the OSD does not need to be
- // redrawn.
+ // The repeat flag is set if exactly the same frame should be rendered
+ // again (and the OSD does not need to be redrawn).
+ // A repeat frame can be redrawn, in which case repeat==redraw==true, and
+ // OSD should be updated.
bool redraw, repeat;
// The frame is not in movement - e.g. redrawing while paused.
bool still;