[L] Change in osmo-mgw[master]: mgcp_codec: fix codec decision
Attention is currently required from: dexter. pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/32218 ) Change subject: mgcp_codec: fix codec decision ...................................................................... Patch Set 4: (1 comment) File src/libosmo-mgcp/mgcp_codec.c: https://gerrit.osmocom.org/c/osmo-mgw/+/32218/comment/eae3fd85_ed27682e PS2, Line 440: conn->end.codec = mgcp_codec_find_same(conn, found_same_codec_opposite);
The problem is that it is not possible to assign codec_conn_dst to conn_src->end. […] Ah I see what you mean, you are looking the codec in each conn list. Now the question I have is: why do we have codec structs holding the same data duplicated (allocated several times) for each connection? Wouldn't it make more sense to have them defined in 1 global place and then have a pointer to that global struct here in all conns? I'm not saying it has to be done in this commit, just pointing out some possibilities for improvement.
-- To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/32218 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-Change-Id: I6c3291f825488e5d8ce136aeb18450156794aeb5 Gerrit-Change-Number: 32218 Gerrit-PatchSet: 4 Gerrit-Owner: dexter <pmaier@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin@sysmocom.de> Gerrit-Attention: dexter <pmaier@sysmocom.de> Gerrit-Comment-Date: Thu, 06 Apr 2023 12:17:42 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin@sysmocom.de> Comment-In-Reply-To: dexter <pmaier@sysmocom.de> Gerrit-MessageType: comment
participants (1)
-
pespin