From e185887ba0da9967337541ebd71e244fb2833c4f Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 May 2015 18:47:27 +0200 Subject: video/out: remove VOFLAG_FLIPPING I think this used to be quite important, because the ancient VfW support in MPlayer used to output flipped frames. This code has been dead in mpv for quite some time (because VfW decoders were removed, and the --flip option was dropped too), so get rid of it. --- video/out/vo_vdpau.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'video/out/vo_vdpau.c') diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index 098f449bcb..b92a7f2d3b 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -97,7 +97,6 @@ struct vdpctx { int flip_offset_window; int flip_offset_fs; int64_t flip_offset_us; - bool flip; VdpRect src_rect_vid; VdpRect out_rect_vid; @@ -237,8 +236,8 @@ static void resize(struct vo *vo) vc->out_rect_vid.y1 = dst_rect.y1; vc->src_rect_vid.x0 = src_rect.x0; vc->src_rect_vid.x1 = src_rect.x1; - vc->src_rect_vid.y0 = vc->flip ? src_rect.y1 : src_rect.y0; - vc->src_rect_vid.y1 = vc->flip ? src_rect.y0 : src_rect.y1; + vc->src_rect_vid.y0 = src_rect.y0; + vc->src_rect_vid.y1 = src_rect.y1; vc->flip_offset_us = vo->opts->fullscreen ? 1000LL * vc->flip_offset_fs : @@ -420,7 +419,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags) if (!check_preemption(vo)) return -1; - vc->flip = flags & VOFLAG_FLIPPING; vc->image_format = params->imgfmt; vc->vid_width = params->w; vc->vid_height = params->h; -- cgit v1.2.3