From 0cb5123c8f65b3d7715deb22ce8430eccc21996e Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 15 May 2008 21:25:17 +0300 Subject: 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. --- libvo/vo_xv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libvo') 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 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 }, -- cgit v1.2.3