summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2018-02-15 19:56:52 -0800
committerKevin Mitchell <kevmitch@gmail.com>2018-02-17 23:01:47 -0800
commit288ed66a355ed9a0e9a5730f87c2fb60e8e546cc (patch)
tree42ba414b0478becfb1eda37abfe6aa0196e09eee
parent0dbad9503fd4fd2d9bc3ed443ad761eaf020fdef (diff)
downloadmpv-288ed66a355ed9a0e9a5730f87c2fb60e8e546cc.tar.bz2
mpv-288ed66a355ed9a0e9a5730f87c2fb60e8e546cc.tar.xz
video: rename VO_CAP_NOREDRAW to VO_CAP_NORETAIN
-rw-r--r--video/out/vo.c4
-rw-r--r--video/out/vo.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index b2aba3af7a..6586ebc63e 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -891,7 +891,7 @@ bool vo_render_frame_external(struct vo *vo)
update_vsync_timing_after_swap(vo);
}
- if (vo->driver->caps & VO_CAP_NOREDRAW) {
+ if (vo->driver->caps & VO_CAP_NORETAIN) {
talloc_free(in->current_frame);
in->current_frame = NULL;
}
@@ -919,7 +919,7 @@ static void do_redraw(struct vo *vo)
{
struct vo_internal *in = vo->in;
- if (!vo->config_ok || (vo->driver->caps & VO_CAP_NOREDRAW))
+ if (!vo->config_ok || (vo->driver->caps & VO_CAP_NORETAIN))
return;
pthread_mutex_lock(&in->lock);
diff --git a/video/out/vo.h b/video/out/vo.h
index 533eca6a2e..90b1d9a61d 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -190,8 +190,8 @@ enum {
VO_CAP_ROTATE90 = 1 << 0,
// VO does framedrop itself (vo_vdpau). Untimed/encoding VOs never drop.
VO_CAP_FRAMEDROP = 1 << 1,
- // VO does not support redraws (vo_mediacodec_embed).
- VO_CAP_NOREDRAW = 1 << 2,
+ // VO does not allow frames to be retained (vo_mediacodec_embed).
+ VO_CAP_NORETAIN = 1 << 2,
};
#define VO_MAX_REQ_FRAMES 10