Attention is currently required from: neels, pespin, dexter.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/32218 )
Change subject: mgcp_codec: fix codec decision ......................................................................
Patch Set 11:
(7 comments)
Patchset:
PS11: Mostly cosmetic comments, not critical.
File src/libosmo-mgcp/mgcp_codec.c:
https://gerrit.osmocom.org/c/osmo-mgw/+/32218/comment/888d664b_894c4c26 PS11, Line 362: found_same_codec = &rtp_end->codecs[i]; just do:
``` return &rtp_end->codecs[i]; ```
https://gerrit.osmocom.org/c/osmo-mgw/+/32218/comment/9932e894_1ee3c446 PS11, Line 367: return found_same_codec; ``` return NULL; ```
https://gerrit.osmocom.org/c/osmo-mgw/+/32218/comment/0cb3b7fb_839d69cb PS11, Line 408: struct mgcp_rtp_codec *codec_conn_dst = NULL; cosmetic: can be moved inside the loop bodies
https://gerrit.osmocom.org/c/osmo-mgw/+/32218/comment/6e40be93_0ee54073 PS11, Line 423: if (conn_dst->end.codecs_assigned == 0) { In order to avoid code duplication, I would merge this block into the previous one:
``` if (!conn_dst || conn_dst->end.codecs_assigned == 0) { ... } ```
File tests/mgcp/mgcp_test.c:
https://gerrit.osmocom.org/c/osmo-mgw/+/32218/comment/949d7d3e_c9040d6e PS11, Line 1808: ws
https://gerrit.osmocom.org/c/osmo-mgw/+/32218/comment/9158dd80_411dfae0 PS11, Line 1976: ws