diff --git a/daemon/media_socket.c b/daemon/media_socket.c index 01bf47b1ec..e535861d06 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -2071,12 +2071,10 @@ static const char *__stream_ssrc_inout(struct packet_stream *ps, uint32_t ssrc, ssrc_ctx_hold(*output); // reverse SSRC mapping - if (dir == SSRC_DIR_OUTPUT) { - if (!output_ssrc) - (*output)->ssrc_map_out = ssrc; - else - (*output)->ssrc_map_out = output_ssrc; - } + if (!output_ssrc) + (*output)->ssrc_map_out = ssrc; + else + (*output)->ssrc_map_out = output_ssrc; mutex_unlock(lock); return ret; diff --git a/daemon/rtcp.c b/daemon/rtcp.c index 302cf79e50..0c83387309 100644 --- a/daemon/rtcp.c +++ b/daemon/rtcp.c @@ -1483,7 +1483,7 @@ static GString *rtcp_sender_report(struct ssrc_sender_report *ssr, struct ssrc_receiver_report *srr = g_slice_alloc(sizeof(*srr)); *srr = (struct ssrc_receiver_report) { .from = ssrc_out, - .ssrc = s->ssrc_map_out ? : s->parent->h.ssrc, + .ssrc = s->parent->h.ssrc, .fraction_lost = lost * 256 / (tot + lost), .packets_lost = lost, .high_seq_received = atomic64_get(&s->last_seq),