From a19bed611c0001287311765b4e29f918706aaacb Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 25 Feb 2025 13:13:52 -0400 Subject: [PATCH] MT#61404 remove unused RTP/non-RTP distinction Change-Id: Ia43e1eb373c893df6693032a14eb631f16593094 --- daemon/media_socket.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/daemon/media_socket.c b/daemon/media_socket.c index 7ba263cac..09bb18c4b 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -221,10 +221,7 @@ const int num_transport_protocols = G_N_ELEMENTS(transport_protocols); /* ********** */ -static const struct streamhandler_io __shio_noop = { // non-RTP protocols - .kernel = __k_null, -}; -static const struct streamhandler_io __shio_noop_rtp = { +static const struct streamhandler_io __shio_noop = { .kernel = __k_null, }; static const struct streamhandler_io __shio_decrypt = { @@ -258,20 +255,16 @@ static const struct streamhandler_io __shio_decrypt_avpf_strip = { /* ********** */ -static const struct streamhandler __sh_noop = { // non-RTP protocols +static const struct streamhandler __sh_noop = { .in = &__shio_noop, .out = &__shio_noop, }; -static const struct streamhandler __sh_noop_rtp = { - .in = &__shio_noop_rtp, - .out = &__shio_noop, -}; static const struct streamhandler __sh_savp2avp = { .in = &__shio_decrypt, .out = &__shio_noop, }; static const struct streamhandler __sh_avp2savp = { - .in = &__shio_noop_rtp, + .in = &__shio_noop, .out = &__shio_encrypt, }; static const struct streamhandler __sh_avpf2avp = { @@ -302,8 +295,8 @@ static const struct streamhandler __sh_savpf2savp = { /* ********** */ static const struct streamhandler * const __sh_matrix_in_rtp_avp[__PROTO_LAST] = { - [PROTO_RTP_AVP] = &__sh_noop_rtp, - [PROTO_RTP_AVPF] = &__sh_noop_rtp, + [PROTO_RTP_AVP] = &__sh_noop, + [PROTO_RTP_AVPF] = &__sh_noop, [PROTO_RTP_SAVP] = &__sh_avp2savp, [PROTO_RTP_SAVPF] = &__sh_avp2savp, [PROTO_UDP_TLS_RTP_SAVP] = &__sh_avp2savp, @@ -314,7 +307,7 @@ static const struct streamhandler * const __sh_matrix_in_rtp_avp[__PROTO_LAST] = }; static const struct streamhandler * const __sh_matrix_in_rtp_avpf[__PROTO_LAST] = { [PROTO_RTP_AVP] = &__sh_avpf2avp, - [PROTO_RTP_AVPF] = &__sh_noop_rtp, + [PROTO_RTP_AVPF] = &__sh_noop, [PROTO_RTP_SAVP] = &__sh_avpf2savp, [PROTO_RTP_SAVPF] = &__sh_avp2savp, [PROTO_UDP_TLS_RTP_SAVP] = &__sh_avpf2savp,