summaryrefslogtreecommitdiffstats
path: root/video/out/vo_vdpau.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-01 18:47:27 +0200
committerwm4 <wm4@nowhere>2015-05-01 18:47:27 +0200
commite185887ba0da9967337541ebd71e244fb2833c4f (patch)
treef9b9a1f33fe0b0dbed56436d3ef946d389519c29 /video/out/vo_vdpau.c
parent0a7abbda6b555fb7746f737b52d0f00fb3e614db (diff)
downloadmpv-e185887ba0da9967337541ebd71e244fb2833c4f.tar.bz2
mpv-e185887ba0da9967337541ebd71e244fb2833c4f.tar.xz
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.
Diffstat (limited to 'video/out/vo_vdpau.c')
-rw-r--r--video/out/vo_vdpau.c6
1 files changed, 2 insertions, 4 deletions
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;