MT#61625 introduce codec_pipeline_index

Serves as a lookup index into a hash table. Use a union in the existing
struct so that we don't have to do any word replacements.

Change-Id: I15f33982ae929e6ed7c1264f7d11a2dca8e03741
pull/1918/head
Richard Fuchs 2 months ago
parent 1b6ad783a8
commit 13d9923374

@ -36,9 +36,19 @@ struct codec_handler_index {
struct call_media *sink; struct call_media *sink;
}; };
struct codec_pipeline_index {
rtp_payload_type src;
rtp_payload_type dst;
};
struct codec_handler { struct codec_handler {
rtp_payload_type source_pt; union {
rtp_payload_type dest_pt; struct codec_pipeline_index pi;
struct {
rtp_payload_type source_pt;
rtp_payload_type dest_pt;
};
};
struct codec_handler_index i; struct codec_handler_index i;
int dtmf_payload_type; int dtmf_payload_type;
int real_dtmf_payload_type; int real_dtmf_payload_type;

Loading…
Cancel
Save