From 7daee7e5bbc0c97136460c4b14a99e4f35bc7e88 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Sun, 23 May 2021 10:00:16 -0700 Subject: [PATCH] Save pointer to the reverse stream to the rtpp_subc_ctx for use in the TTL setting sub-command and other places. PR: #59 --- src/commands/rpcpv1_ul.c | 2 +- src/rtpp_command_sub.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/rpcpv1_ul.c b/src/commands/rpcpv1_ul.c index 1f3e41360..16c13a5ba 100644 --- a/src/commands/rpcpv1_ul.c +++ b/src/commands/rpcpv1_ul.c @@ -659,7 +659,7 @@ rtpp_command_ul_handle(const struct rtpp_cfg *cfsp, struct rtpp_command *cmd, in } if (ulop->after_success.handler != NULL) { struct rtpp_subc_ctx rsc = {.sessp = spa, .strmp = spa->rtp->stream[pidx], - .subc_args = &(cmd->subc_args)}; + .strmp_rev = spa->rtp->stream[sidx], .subc_args = &(cmd->subc_args)}; ulop->reply.subc_res = ulop->after_success.handler(ulop->after_success.arg, &rsc); } ul_reply_port(cmd, &ulop->reply); diff --git a/src/rtpp_command_sub.h b/src/rtpp_command_sub.h index 6095d3eaa..3bebb8304 100644 --- a/src/rtpp_command_sub.h +++ b/src/rtpp_command_sub.h @@ -34,6 +34,7 @@ struct rtpp_command_args; struct rtpp_subc_ctx { struct rtpp_session *sessp; struct rtpp_stream *strmp; + struct rtpp_stream *strmp_rev; const struct rtpp_command_args *subc_args; };