diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-05-15 21:25:17 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-05-15 21:25:17 +0300 |
commit | 0cb5123c8f65b3d7715deb22ce8430eccc21996e (patch) | |
tree | e7a5c43b04a4f37f76f853377b3d8f4a9f2d4e0f /libvo/vo_xv.c | |
parent | a41db36b22053c2cf103899f3510f68ff5645662 (diff) | |
download | mpv-0cb5123c8f65b3d7715deb22ce8430eccc21996e.tar.bz2 mpv-0cb5123c8f65b3d7715deb22ce8430eccc21996e.tar.xz |
vo_xv: Fix port selection
Port selection was broken in conversion to new VO API (the user
setting was parsed to a variable that then wasn't used for anything).
Fix by parsing it to the x11 struct xv_port variable.
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 286e04b301..42bd45f473 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -70,7 +70,6 @@ static const vo_info_t info = { #include <X11/extensions/Xvlib.h> struct xvctx { - unsigned int xv_port; XvAdaptorInfo *ai; XvImageFormatValues *fo; unsigned int formats, adaptors, xv_format; @@ -741,7 +740,7 @@ static int preinit(struct vo *vo, const char *arg) opt_t subopts[] = { /* name arg type arg var test */ - { "port", OPT_ARG_INT, &ctx->xv_port, (opt_test_f)int_pos }, + { "port", OPT_ARG_INT, &x11->xv_port, (opt_test_f)int_pos }, { "adaptor", OPT_ARG_INT, &xv_adaptor, (opt_test_f)int_non_neg }, { "ck", OPT_ARG_STR, &ck_src_arg, xv_test_ck }, { "ck-method", OPT_ARG_STR, &ck_method_arg, xv_test_ckm }, |