This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has submitted this change and it was merged.
Change subject: cosmetic: correct whitespaces
......................................................................
cosmetic: correct whitespaces
Change-Id: I22302ae8a48a2c776025a60267f5ef5af706e576
---
M src/libosmo-mgcp/mgcp_sdp.c
1 file changed, 21 insertions(+), 11 deletions(-)
Approvals:
Harald Welte: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/src/libosmo-mgcp/mgcp_sdp.c b/src/libosmo-mgcp/mgcp_sdp.c
index 314ba3e..f45d6e7 100644
--- a/src/libosmo-mgcp/mgcp_sdp.c
+++ b/src/libosmo-mgcp/mgcp_sdp.c
@@ -62,15 +62,23 @@
if (!audio_name) {
switch (payload_type) {
- case 0: audio_name = "PCMU/8000/1"; break;
- case 3: audio_name = "GSM/8000/1"; break;
- case 8: audio_name = "PCMA/8000/1"; break;
- case 18: audio_name = "G729/8000/1"; break;
+ case 0:
+ audio_name = "PCMU/8000/1";
+ break;
+ case 3:
+ audio_name = "GSM/8000/1";
+ break;
+ case 8:
+ audio_name = "PCMA/8000/1";
+ break;
+ case 18:
+ audio_name = "G729/8000/1";
+ break;
default:
- /* Payload type is unknown, don't change rate and
- * channels. */
- /* TODO: return value? */
- return 0;
+ /* Payload type is unknown, don't change rate and
+ * channels. */
+ /* TODO: return value? */
+ return 0;
}
}
@@ -156,8 +164,9 @@
if (codecs[i].payload_type != payload)
continue;
if (sscanf(audio_name, "%63[^/]/%d/%d",
- audio_codec, &rate, &channels) < 1) {
- LOGP(DLMGCP, LOGL_ERROR, "Failed to parse '%s'\n", audio_name);
+ audio_codec, &rate, &channels) < 1) {
+ LOGP(DLMGCP, LOGL_ERROR, "Failed to parse '%s'\n",
+ audio_name);
continue;
}
@@ -168,7 +177,8 @@
return;
}
- LOGP(DLMGCP, LOGL_ERROR, "Unconfigured PT(%d) with %s\n", payload, audio_name);
+ LOGP(DLMGCP, LOGL_ERROR, "Unconfigured PT(%d) with %s\n", payload,
+ audio_name);
}
/* Check if the codec matches what is set up in the trunk config */
--
To view, visit https://gerrit.osmocom.org/4329
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I22302ae8a48a2c776025a60267f5ef5af706e576
Gerrit-PatchSet: 4
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder