[Pkg-voip-commits] [janus] 262/282: Fixed nits and typos
Jonas Smedegaard
dr at jones.dk
Wed Dec 20 21:53:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.
commit 6e88eb2d18fbe48505242f1fe56e4dc056626aca
Author: Lorenzo Miniero <lminiero at gmail.com>
Date: Fri Dec 15 18:19:16 2017 +0100
Fixed nits and typos
---
rtcp.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/rtcp.c b/rtcp.c
index 5507145..415b452 100644
--- a/rtcp.c
+++ b/rtcp.c
@@ -162,8 +162,8 @@ int janus_rtcp_fix_ssrc(rtcp_context *ctx, char *packet, int len, int fixssrc, u
case RTCP_SR: {
/* SR, sender report */
JANUS_LOG(LOG_HUGE, " #%d SR (200)\n", pno);
- rtcp_sr *sr = (rtcp_sr*)rtcp;
- /* RTCP context provided, update it with info on this SR */
+ rtcp_sr *sr = (rtcp_sr *)rtcp;
+ /* If an RTCP context was provided, update it with info on this SR */
janus_rtcp_incoming_sr(ctx, sr);
if(fixssrc && newssrcl) {
sr->ssrc = htonl(newssrcl);
@@ -176,11 +176,9 @@ int janus_rtcp_fix_ssrc(rtcp_context *ctx, char *packet, int len, int fixssrc, u
case RTCP_RR: {
/* RR, receiver report */
JANUS_LOG(LOG_HUGE, " #%d RR (201)\n", pno);
- rtcp_rr *rr = (rtcp_rr*)rtcp;
- if(ctx != NULL) {
- /* RTCP context provided, update it with info on this SR */
- janus_rtcp_incoming_rr(ctx, rr);
- }
+ rtcp_rr *rr = (rtcp_rr *)rtcp;
+ /* If an RTCP context was provided, update it with info on this RR */
+ janus_rtcp_incoming_rr(ctx, rr);
if(fixssrc && newssrcl) {
rr->ssrc = htonl(newssrcl);
}
@@ -192,7 +190,7 @@ int janus_rtcp_fix_ssrc(rtcp_context *ctx, char *packet, int len, int fixssrc, u
case RTCP_SDES: {
/* SDES, source description */
JANUS_LOG(LOG_HUGE, " #%d SDES (202)\n", pno);
- rtcp_sdes *sdes = (rtcp_sdes*)rtcp;
+ rtcp_sdes *sdes = (rtcp_sdes *)rtcp;
//~ JANUS_LOG(LOG_HUGE, " -- SSRC: %u\n", ntohl(sdes->chunk.ssrc));
if(fixssrc && newssrcl) {
sdes->chunk.ssrc = htonl(newssrcl);
@@ -202,7 +200,7 @@ int janus_rtcp_fix_ssrc(rtcp_context *ctx, char *packet, int len, int fixssrc, u
case RTCP_BYE: {
/* BYE, goodbye */
JANUS_LOG(LOG_HUGE, " #%d BYE (203)\n", pno);
- rtcp_bye_t *bye = (rtcp_bye_t*)rtcp;
+ rtcp_bye_t *bye = (rtcp_bye_t *)rtcp;
//~ JANUS_LOG(LOG_HUGE, " -- SSRC: %u\n", ntohl(bye->ssrc[0]));
if(fixssrc && newssrcl) {
bye->ssrc[0] = htonl(newssrcl);
@@ -212,7 +210,7 @@ int janus_rtcp_fix_ssrc(rtcp_context *ctx, char *packet, int len, int fixssrc, u
case RTCP_APP: {
/* APP, application-defined */
JANUS_LOG(LOG_HUGE, " #%d APP (204)\n", pno);
- rtcp_app_t *app = (rtcp_app_t*)rtcp;
+ rtcp_app_t *app = (rtcp_app_t *)rtcp;
//~ JANUS_LOG(LOG_HUGE, " -- SSRC: %u\n", ntohl(app->ssrc));
if(fixssrc && newssrcl) {
app->ssrc = htonl(newssrcl);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git
More information about the Pkg-voip-commits
mailing list