From de6f1a30c1a59ac3a85c75270dcf60401d2bef2e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 14 Jan 2025 08:19:40 -0400 Subject: [PATCH] MT#55283 put sendrecv attributes in aux variables No-op. Change-Id: Ie63441499544d39f9de2eb87c305b17a84a5ec8c (cherry picked from commit e97aaca4a3510de6e551becda64cfe0478640926) --- daemon/sdp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 955cbf72a..f0b2862da 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1927,11 +1927,14 @@ int sdp_streams(const sdp_sessions_q *sessions, sdp_streams_q *streams, sdp_ng_f /* a=sendrecv/sendonly/recvonly/inactive */ SP_SET(sp, SEND); SP_SET(sp, RECV); - if (attr_get_by_id_m_s(media, ATTR_RECVONLY)) + const struct sdp_attribute *sendonly = attr_get_by_id_m_s(media, ATTR_SENDONLY); + const struct sdp_attribute *recvonly = attr_get_by_id_m_s(media, ATTR_RECVONLY); + const struct sdp_attribute *inactive = attr_get_by_id_m_s(media, ATTR_INACTIVE); + if (recvonly) SP_CLEAR(sp, SEND); - else if (attr_get_by_id_m_s(media, ATTR_SENDONLY)) + else if (sendonly) SP_CLEAR(sp, RECV); - else if (attr_get_by_id_m_s(media, ATTR_INACTIVE)) + else if (inactive) { SP_CLEAR(sp, RECV); SP_CLEAR(sp, SEND);