summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-20 21:12:46 +0200
committerwm4 <wm4@nowhere>2015-07-20 21:12:46 +0200
commit4a1657da01da373332f484d26441835975bb4e4b (patch)
tree10ae7106b128286a6f37572670f23b1561ece759 /player/core.h
parent6f7d04be21de7bdfce3c7c38a4d5fae17451b409 (diff)
downloadmpv-4a1657da01da373332f484d26441835975bb4e4b.tar.bz2
mpv-4a1657da01da373332f484d26441835975bb4e4b.tar.xz
vo: minor simplification for queue size handling
Instead of calling it "future frames" and adding or subtracting 1 from it, always call it "requested frames". This simplifies it a bit. MPContext.next_frames had 2 added to it; this was mainly to ensure a minimum size of 2. Drop it and assume VO_MAX_REQ_FRAMES is at least 2; together with the other changes, this can be the exact size of the array.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h
index 80cf7178dd..c2fe74cb6b 100644
--- a/player/core.h
+++ b/player/core.h
@@ -229,7 +229,7 @@ typedef struct MPContext {
struct vo *video_out;
// next_frame[0] is the next frame, next_frame[1] the one after that.
- struct mp_image *next_frames[2 + VO_MAX_FUTURE_FRAMES];
+ struct mp_image *next_frames[VO_MAX_REQ_FRAMES];
int num_next_frames;
struct mp_image *saved_frame; // for hrseek_lastframe