keep order of rtp contents
This commit is contained in:
parent
541c8ba80d
commit
1c5a1b8c71
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue