summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-11-01 13:06:48 +0100
committerwm4 <wm4@nowhere>2016-11-01 16:25:40 +0100
commit17733bd5b84a7bb8caf497aa9ea35efd657e967a (patch)
tree0bf5d2ee9c50327649e595f06f374dc65396dc95 /video/out/vo.h
parenteedda59a6941f1b9d1968ccf75d5578718b0b08c (diff)
downloadmpv-17733bd5b84a7bb8caf497aa9ea35efd657e967a.tar.bz2
mpv-17733bd5b84a7bb8caf497aa9ea35efd657e967a.tar.xz
vo_opengl: make frame reupload logic more robust
It's not that easy to decide whether a frame needs to be reuploaded/rerendered. Using unique frame IDs for input makes it slightly easier and more robust. This also removes the use of video PTS in the interpolation path. This should also avoid reuploading the video frame if it's just redrawn in paused mode, or when using OSD/subtitles in cover art mode.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index d2393f829b..99e6ccabae 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -223,6 +223,7 @@ struct vo_frame {
// a frame is guaranteed not to change (instant redraws will use the same
// ID). frames[n] has the ID frame_id+n, with the guarantee that frame
// drops or reconfigs will keep the guarantee.
+ // The ID is never 0 (unless num_frames==0). IDs are strictly monotonous.
uint64_t frame_id;
};