Browse Source

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 10 months ago
parent
commit
13d9923374
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      include/codec.h

+ 12
- 2
include/codec.h View File

@ -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;


Loading…
Cancel
Save