mirror of https://github.com/mpv-player/mpv
video: rename VO_CAP_NOREDRAW to VO_CAP_NORETAIN
This commit is contained in:
parent
0dbad9503f
commit
288ed66a35
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue