diff options
author | Shuanglei Tao <tsl0922@gmail.com> | 2024-03-22 20:57:46 +0800 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-03-23 02:28:18 +0100 |
commit | 7490919a9accc5b9f4721e09fb445d217d691897 (patch) | |
tree | 4a4f535e7fad7dc7bbb99447c794baee1d4f9804 /player/command.c | |
parent | 9cee44147a1f14777015e008100ef6bbd7a2b91e (diff) | |
download | mpv-7490919a9accc5b9f4721e09fb445d217d691897.tar.bz2 mpv-7490919a9accc5b9f4721e09fb445d217d691897.tar.xz |
player/command: fix udata talloc parent
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c index ed4def2813..36a9afbb29 100644 --- a/player/command.c +++ b/player/command.c @@ -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; 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); } @@ -3888,7 +3888,7 @@ static int mp_property_udata(void *ctx, struct m_property *prop, .mpctx = mpctx, .path = path, .node = &mpctx->command_ctx->udata, - .ta_parent = &mpctx->command_ctx, + .ta_parent = mpctx->command_ctx, }; int ret = do_op_udata(&nctx, action, arg); |