diff options
author | Sebastien Vincent <seb@jitsi.org> | 2011-01-31 11:17:36 +0000 |
---|---|---|
committer | Sebastien Vincent <seb@jitsi.org> | 2011-01-31 11:17:36 +0000 |
commit | b807ffabad08c5e255df83507baf567e58dd20d8 (patch) | |
tree | 5a0115277f60cd49fbcc7881647f3fdee9f2cb9d /src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java | |
parent | 58787d1330ab37a712959e772b22622ac66ba4c0 (diff) | |
download | jitsi-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-x | src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java | 8 |
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();
|