From a7e9d52776ebb5bf7d17d5d1c5e500646d1cfcf2 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 12 Aug 2025 12:01:00 -0400 Subject: [PATCH] MT#55283 remove sp->desired_family doesn't really belong there Change-Id: Ia5a5be897404a5ebc34bc499d08c14323229cb14 --- daemon/call.c | 4 ++-- daemon/sdp.c | 1 - include/call.h | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index ad89ba1a5..78ee58a19 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2992,8 +2992,8 @@ static void __media_init_from_flags(struct call_media *other_media, struct call_ if (media && (!media->desired_family || !MEDIA_ISSET(media, ICE))) { if (!media->desired_family) media->desired_family = other_media->desired_family; - if (sp->desired_family) - media->desired_family = sp->desired_family; + if (flags->address_family) + media->desired_family = flags->address_family; } if (flags->opmode == OP_OFFER) { diff --git a/daemon/sdp.c b/daemon/sdp.c index 22346c940..44c9a32ac 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1884,7 +1884,6 @@ int sdp_streams(const sdp_sessions_q *sessions, sdp_streams_q *streams, sdp_ng_f sp->type = media->media_type_str; sp->type_id = media->media_type_id; memcpy(sp->direction, flags->direction, sizeof(sp->direction)); - sp->desired_family = flags->address_family; bf_set_clear(&sp->sp_flags, SP_FLAG_ASYMMETRIC, flags->asymmetric); bf_set_clear(&sp->sp_flags, SP_FLAG_UNIDIRECTIONAL, flags->unidirectional); bf_set_clear(&sp->sp_flags, SP_FLAG_STRICT_SOURCE, flags->strict_source); diff --git a/include/call.h b/include/call.h index 683110cb6..86193c14d 100644 --- a/include/call.h +++ b/include/call.h @@ -365,7 +365,6 @@ struct stream_params { sdp_attr_q generic_attributes; /* just some other attributes */ sdp_attr_q all_attributes; /* all attributes */ str direction[2]; - sockfamily_t *desired_family; struct dtls_fingerprint fingerprint; atomic64 sp_flags; struct codec_store codecs;