mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 06:11:10 +00:00
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.
This commit is contained in:
parent
a41db36b22
commit
0cb5123c8f
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user