From 1c5a1b8c71675cf6c41c153ff35d15db53cbc0af Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 6 Oct 2023 12:34:41 +0200 Subject: [PATCH] keep order of rtp contents --- .../java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java index 45effba4d..5b940e7b8 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/RtpContentMap.java @@ -24,6 +24,7 @@ import eu.siacs.conversations.xmpp.jingle.stanzas.RtpDescription; import java.util.Collection; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; @@ -430,7 +431,7 @@ public class RtpContentMap { private static Map merge( final Map a, final Map b) { - final Map combined = new HashMap<>(); + final Map combined = new LinkedHashMap<>(); combined.putAll(a); combined.putAll(b); return ImmutableMap.copyOf(combined);