keep order of rtp contents

This commit is contained in:
Daniel Gultsch 2023-10-06 12:34:41 +02:00
parent 541c8ba80d
commit 1c5a1b8c71
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -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<String, DescriptionTransport> merge(
final Map<String, DescriptionTransport> a, final Map<String, DescriptionTransport> b) {
final Map<String, DescriptionTransport> combined = new HashMap<>();
final Map<String, DescriptionTransport> combined = new LinkedHashMap<>();
combined.putAll(a);
combined.putAll(b);
return ImmutableMap.copyOf(combined);