MT#55283 clarify attribute moving

An empty attribute list is not the indicative factor of whether or not
to empty out and re-fill the list of attributes, as having no attributes
is a valid scenario and should lead to no attributes present on the
output side.

Change-Id: I3464cd6cf0709a38b7c89a2f138d7a0329ce993b
pull/1786/head
Richard Fuchs 2 years ago
parent 8c99588550
commit c52a6d567d

@ -2705,7 +2705,7 @@ static void __media_init_from_flags(struct call_media *other_media, struct call_
* extmap
* other (unknown type)
*/
if (media && additional_attributes && additional_attributes->head) {
if (media) {
t_queue_clear_full(&media->sdp_attributes, str_free);
for (__auto_type l = additional_attributes->head; l; l = l->next) {
str *source_attr = l->data;

Loading…
Cancel
Save