TT#91003 add media_out pointer to media_packet

Change-Id: I21c76fef05d6af394f09476e9761c439e7a0da44
pull/1077/head
Richard Fuchs 5 years ago
parent d0db2cba67
commit e8aac8272c

@ -216,6 +216,7 @@ static const char *dtmf_inject_pcm(struct call_media *media, struct call_monolog
.tv = rtpe_now,
.call = call,
.media = media,
.media_out = media,
.rtp = &rtp,
.ssrc_in = ssrc_in,
.ssrc_out = ssrc_out,

@ -377,6 +377,7 @@ void media_player_add_packet(struct media_player *mp, char *buf, size_t len,
.tv = rtpe_now,
.call = mp->call,
.media = mp->media,
.media_out = mp->media,
.rtp = &rtp,
.ssrc_out = mp->ssrc_out,
};

@ -1454,6 +1454,8 @@ static void media_packet_rtcp_demux(struct packet_handler_ctx *phc)
phc->out_srtp = phc->sink;
if (phc->rtcp && phc->sink && phc->sink->rtcp_sibling)
phc->out_srtp = phc->sink->rtcp_sibling; // use RTCP SRTP context
phc->mp.media_out = phc->sink->media;
}

@ -131,6 +131,7 @@ struct media_packet {
struct call *call; // sfd->call
struct packet_stream *stream; // sfd->stream
struct call_media *media; // stream->media
struct call_media *media_out; // output media
struct rtp_header *rtp;
struct rtcp_packet *rtcp;

Loading…
Cancel
Save