Skip to content

Commit 7daee7e

Browse files
committed
Save pointer to the reverse stream to the rtpp_subc_ctx for use
in the TTL setting sub-command and other places. PR: #59
1 parent e442c63 commit 7daee7e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/commands/rpcpv1_ul.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ rtpp_command_ul_handle(const struct rtpp_cfg *cfsp, struct rtpp_command *cmd, in
659659
}
660660
if (ulop->after_success.handler != NULL) {
661661
struct rtpp_subc_ctx rsc = {.sessp = spa, .strmp = spa->rtp->stream[pidx],
662-
.subc_args = &(cmd->subc_args)};
662+
.strmp_rev = spa->rtp->stream[sidx], .subc_args = &(cmd->subc_args)};
663663
ulop->reply.subc_res = ulop->after_success.handler(ulop->after_success.arg, &rsc);
664664
}
665665
ul_reply_port(cmd, &ulop->reply);

src/rtpp_command_sub.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ struct rtpp_command_args;
3434
struct rtpp_subc_ctx {
3535
struct rtpp_session *sessp;
3636
struct rtpp_stream *strmp;
37+
struct rtpp_stream *strmp_rev;
3738
const struct rtpp_command_args *subc_args;
3839
};
3940

0 commit comments

Comments
 (0)