Skip to content

Commit

Permalink
Save pointer to the reverse stream to the rtpp_subc_ctx for use
Browse files Browse the repository at this point in the history
in the TTL setting sub-command and other places.

PR:	#59
  • Loading branch information
sobomax committed May 23, 2021
1 parent e442c63 commit 7daee7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/rpcpv1_ul.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_command_sub.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 7daee7e

Please sign in to comment.