From 13d9923374477dad5ce7302dd1a37f387c8828f2 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 12 Feb 2025 09:46:51 -0400 Subject: [PATCH] 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 --- include/codec.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/codec.h b/include/codec.h index dd033a56a..28e212c20 100644 --- a/include/codec.h +++ b/include/codec.h @@ -36,9 +36,19 @@ struct codec_handler_index { struct call_media *sink; }; +struct codec_pipeline_index { + rtp_payload_type src; + rtp_payload_type dst; +}; + struct codec_handler { - rtp_payload_type source_pt; - rtp_payload_type dest_pt; + union { + struct codec_pipeline_index pi; + struct { + rtp_payload_type source_pt; + rtp_payload_type dest_pt; + }; + }; struct codec_handler_index i; int dtmf_payload_type; int real_dtmf_payload_type;