summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c2
-rw-r--r--player/video.c7
2 files changed, 3 insertions, 6 deletions
diff --git a/player/playloop.c b/player/playloop.c
index a8c47d8e66..f7f92a2eda 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -771,7 +771,7 @@ void handle_force_window(struct MPContext *mpctx, bool reconfig)
// Pick whatever works
int config_format = 0;
for (int fmt = IMGFMT_START; fmt < IMGFMT_END; fmt++) {
- if (vo->driver->query_format(vo, fmt)) {
+ if (vo_query_format(vo, fmt)) {
config_format = fmt;
break;
}
diff --git a/player/video.c b/player/video.c
index ffe24e621c..fd998014d5 100644
--- a/player/video.c
+++ b/player/video.c
@@ -91,10 +91,8 @@ void update_fps(struct MPContext *mpctx)
static void set_allowed_vo_formats(struct vf_chain *c, struct vo *vo)
{
- for (int fmt = IMGFMT_START; fmt < IMGFMT_END; fmt++) {
- c->allowed_output_formats[fmt - IMGFMT_START] =
- vo->driver->query_format(vo, fmt);
- }
+ for (int fmt = IMGFMT_START; fmt < IMGFMT_END; fmt++)
+ c->allowed_output_formats[fmt - IMGFMT_START] = vo_query_format(vo, fmt);
}
static int try_filter(struct MPContext *mpctx, struct mp_image_params params,
@@ -575,7 +573,6 @@ static int update_video(struct MPContext *mpctx, double endpts)
}
- //bool vo_framedrop = !!mpctx->video_out->driver->flip_page_timed;
bool vo_framedrop = !!(mpctx->opts->frame_dropping & 1);
int min_frames = vo_framedrop ? 2 : 1; // framedrop needs duration