Review at  https://gerrit.osmocom.org/4329

cosmetic: correct whitespaces

Change-Id: I22302ae8a48a2c776025a60267f5ef5af706e576
---
M src/libosmo-mgcp/mgcp_sdp.c
1 file changed, 21 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/29/4329/1

diff --git a/src/libosmo-mgcp/mgcp_sdp.c b/src/libosmo-mgcp/mgcp_sdp.c
index d1fe53d..048a533 100644
--- a/src/libosmo-mgcp/mgcp_sdp.c
+++ b/src/libosmo-mgcp/mgcp_sdp.c
@@ -61,15 +61,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;
                }
        }
 
@@ -155,8 +163,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;
                }
 
@@ -167,7 +176,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: newchange
Gerrit-Change-Id: I22302ae8a48a2c776025a60267f5ef5af706e576
Gerrit-PatchSet: 1
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Owner: dexter <pma...@sysmocom.de>

Reply via email to