aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/jinglesdp/JingleUtils.java9
1 files changed, 7 insertions, 2 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 93cdead..8094f68 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
@@ -179,12 +179,17 @@ public class JingleUtils
else
paramsMap.put(paramName, param.getValue());
}
-
- // video-related attributes in payload-type element
+
for(String attr : payloadType.getAttributeNames())
{
+ //video-related attributes in payload-type element
if(attr.equals("width") || attr.equals("height"))
paramsMap.put(attr, payloadType.getAttributeAsString(attr));
+
+ //update ptime with the actual value from the payload
+ if (attr.equals(PayloadTypePacketExtension.PTIME_ATTR_NAME))
+ advancedMap.put(PayloadTypePacketExtension.PTIME_ATTR_NAME,
+ Integer.toString(payloadType.getPtime()));
}
//now create the format.