mirror of https://github.com/mpv-player/mpv
player/command: fix udata talloc parent
This commit is contained in:
parent
9cee44147a
commit
7490919a9a
|
@ -3862,7 +3862,7 @@ static int do_list_udata(int item, int action, void *arg, void *ctx)
|
||||||
{
|
{
|
||||||
struct udata_ctx nctx = *(struct udata_ctx*)ctx;
|
struct udata_ctx nctx = *(struct udata_ctx*)ctx;
|
||||||
nctx.node = &nctx.node->u.list->values[item];
|
nctx.node = &nctx.node->u.list->values[item];
|
||||||
nctx.ta_parent = &nctx.node->u.list;
|
nctx.ta_parent = nctx.node->u.list;
|
||||||
|
|
||||||
return do_op_udata(&nctx, action, arg);
|
return do_op_udata(&nctx, action, arg);
|
||||||
}
|
}
|
||||||
|
@ -3888,7 +3888,7 @@ static int mp_property_udata(void *ctx, struct m_property *prop,
|
||||||
.mpctx = mpctx,
|
.mpctx = mpctx,
|
||||||
.path = path,
|
.path = path,
|
||||||
.node = &mpctx->command_ctx->udata,
|
.node = &mpctx->command_ctx->udata,
|
||||||
.ta_parent = &mpctx->command_ctx,
|
.ta_parent = mpctx->command_ctx,
|
||||||
};
|
};
|
||||||
|
|
||||||
int ret = do_op_udata(&nctx, action, arg);
|
int ret = do_op_udata(&nctx, action, arg);
|
||||||
|
|
Loading…
Reference in New Issue