aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java
diff options
context:
space:
mode:
authorpaweldomas <pawel.domas@jitsi.org>2014-09-01 09:42:05 +0200
committerpaweldomas <pawel.domas@jitsi.org>2014-09-02 09:35:08 +0200
commit93305496ffc492b31dea5dd8d306db6df6487e64 (patch)
tree39a0ad320f0a6086f100e1dc186b64325be2abdc /src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java
parentc0c8d8d1ab0cd099d345d4d0d777e59404bac710 (diff)
downloadjitsi-93305496ffc492b31dea5dd8d306db6df6487e64.zip
jitsi-93305496ffc492b31dea5dd8d306db6df6487e64.tar.gz
jitsi-93305496ffc492b31dea5dd8d306db6df6487e64.tar.bz2
Handles unsupported 'data' media type when processing jingle offer.
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java')
-rw-r--r--src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java b/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java
index 5caf298..20822b0 100644
--- a/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java
+++ b/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java
@@ -611,6 +611,8 @@ public abstract class CallPeerMediaHandler<T extends MediaAwareCallPeer<?,?,?>>
return audioDirectionUserPreference;
case VIDEO:
return videoDirectionUserPreference;
+ case DATA:
+ return MediaDirection.INACTIVE;
default:
throw new IllegalArgumentException("mediaType");
}
@@ -655,7 +657,10 @@ public abstract class CallPeerMediaHandler<T extends MediaAwareCallPeer<?,?,?>>
*/
protected List<RTPExtension> getExtensionsForType(MediaType type)
{
- return getDefaultDevice(type).getSupportedExtensions();
+ MediaDevice device = getDefaultDevice(type);
+ return device != null
+ ? device.getSupportedExtensions()
+ : new ArrayList<RTPExtension>();
}
/**