From 572dd713c6d5423a120a66fd2997b265513cb2e6 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Wed, 18 Sep 2024 12:10:48 +0200 Subject: [PATCH] MT#60476 sdp_create: convert parameter naming For the `print_sdp_media_section()` change parameter naming `message_setup` -> `sdp_create`, so that other differentiations can also take place in this function. E.g. slightly different rtcp handling for the sdp_create in comparison to the sdp_replace (because no chopper based approach can be applied here). Change-Id: I555e0ace04b384d6907f831c2a3de9a0b09777e4 --- daemon/sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 6be4fe28c..7e33708dd 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -3182,7 +3182,7 @@ static struct packet_stream *print_sdp_media_section(GString *s, struct call_med packet_stream_list *rtp_ps_link, bool is_active, bool force_end_of_ice, - bool message_setup) /* TODO: remove after sdp_replace is deprecated */ + bool sdp_create) /* TODO: remove after sdp_replace is deprecated */ { struct packet_stream *rtp_ps = rtp_ps_link->data; struct packet_stream *ps_rtcp = NULL; @@ -3234,7 +3234,7 @@ static struct packet_stream *print_sdp_media_section(GString *s, struct call_med } /* message media type. Cases like: "m=message 28000 TCP/MSRP *" */ - } else if (media->type_id == MT_MESSAGE && message_setup) { + } else if (media->type_id == MT_MESSAGE && sdp_create) { /* handle `a=setup:` */ insert_setup(s, media, flags, false); }