aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java
diff options
context:
space:
mode:
authorSebastien Vincent <seb@jitsi.org>2011-01-31 11:17:36 +0000
committerSebastien Vincent <seb@jitsi.org>2011-01-31 11:17:36 +0000
commitb807ffabad08c5e255df83507baf567e58dd20d8 (patch)
tree5a0115277f60cd49fbcc7881647f3fdee9f2cb9d /src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java
parent58787d1330ab37a712959e772b22622ac66ba4c0 (diff)
downloadjitsi-b807ffabad08c5e255df83507baf567e58dd20d8.zip
jitsi-b807ffabad08c5e255df83507baf567e58dd20d8.tar.gz
jitsi-b807ffabad08c5e255df83507baf567e58dd20d8.tar.bz2
Increase receive buffer of the RTP socket because in case of high fps video, some packets could overflow the buffer (especially on Windows which has low receive buffer by default), which means that some packets will be dropped.
Diffstat (limited to 'src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java')
-rwxr-xr-xsrc/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java b/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java
index 70cfd25..e5cfcd5 100755
--- a/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java
+++ b/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java
@@ -86,6 +86,14 @@ public class RTPConnectorInputStream
{
this.socket = socket;
+ try
+ {
+ this.socket.setReceiveBufferSize(65535);
+ }
+ catch(IOException e)
+ {
+ }
+
closed = false;
receiverThread = new Thread(this);
receiverThread.start();