stop using deprecated mgcp_client codecs[]

ptmap[].codec is already set correctly, so we can simply drop use of
codecs[] now.

Related: osmo-mgw I798e02c6663376d3d52f4a74fc4b32411ce95bed
Change-Id: I701eb97ddafa871cfbc12fdbe8a1fe14aa2a4db1
This commit is contained in:
Neels Hofmeyr 2024-01-05 02:09:40 +01:00
parent 4a9ea4f311
commit 63a2263481
1 changed files with 0 additions and 2 deletions

View File

@ -329,14 +329,12 @@ static int rtp_stream_do_mgcp_verb(struct rtp_stream *rtps, enum mgcp_verb verb,
codec->subtype_name);
continue;
}
verb_info.codecs[i] = m->mgcp;
verb_info.ptmap[i] = (struct ptmap){
.codec = m->mgcp,
.pt = codec->payload_type,
};
OSMO_STRLCPY_ARRAY(verb_info.ptmap[i].fmtp, codec->fmtp);
i++;
verb_info.codecs_len = i;
verb_info.ptmap_len = i;
}
rtps->codecs_sent_to_mgw = true;