From 814177119c54a156e911d1a89bb1fca47f79e725 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 1 Oct 2024 11:15:30 +0200 Subject: [PATCH] MT#60476 print_sdp_media_section: remove force_end_of_ice Not required anymore, since this function is only in use by the sdp_create one. Change-Id: I56d016d99f6d994805dc3fe7fdafd7c0d729a466 --- daemon/sdp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 14cbd521f..311816e7c 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -2789,8 +2789,7 @@ static struct packet_stream *print_sdp_media_section(GString *s, struct call_med struct call_media *source_media, const sdp_ng_flags *flags, packet_stream_list *rtp_ps_link, - bool is_active, - bool force_end_of_ice) + bool is_active) { struct packet_stream *rtp_ps = rtp_ps_link->data; struct packet_stream *ps_rtcp = NULL; @@ -2850,7 +2849,7 @@ static struct packet_stream *print_sdp_media_section(GString *s, struct call_med insert_setup(s, media, flags, false); } - if ((MEDIA_ISSET(media, TRICKLE_ICE) && media->ice_agent) || force_end_of_ice) { + if ((MEDIA_ISSET(media, TRICKLE_ICE) && media->ice_agent)) { append_attr_to_gstring(s, "end-of-candidates", NULL, flags, media->type_id); } @@ -3181,7 +3180,7 @@ void handle_sdp_media_attributes(GString *s, struct call_media *media, sdp_out_add_bandwidth(s, monologue, media); /* print media level attributes */ - print_sdp_media_section(s, media, source_media, flags, rtp_ps_link, true, false); + print_sdp_media_section(s, media, source_media, flags, rtp_ps_link, true); }