aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java b/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java
index db34e0c..50b0e85 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java
+++ b/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java
@@ -116,6 +116,7 @@ public class JingleUtils
DynamicPayloadTypeRegistry ptRegistry)
{
byte pt = (byte)payloadType.getID();
+ boolean unknown = false;
//convert params to a name:value map
List<ParameterPacketExtension> params = payloadType.getParameters();
@@ -138,6 +139,7 @@ public class JingleUtils
//we don't seem to know anything about this format
if(format == null)
{
+ unknown = true;
format =
JabberActivator.getMediaService().getFormatFactory().
createUnknownMediaFormat(MediaType.AUDIO);
@@ -160,7 +162,7 @@ public class JingleUtils
&& (ptRegistry.findFormat(pt) == null))
ptRegistry.addMapping(format, pt);
- return format;
+ return (unknown == false) ? format : null;
}
/**