You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by co...@google.com on 2013/03/18 09:52:20 UTC
[red5phone] r109 committed - Fix BytesBuffer.
Revision: 109
Author: timur.tleukenov@gmail.com
Date: Mon Mar 18 01:52:03 2013
Log: Fix BytesBuffer.
http://code.google.com/p/red5phone/source/detail?r=109
Modified:
/branches/red5sip/src/java/org/red5/sip/app/BytesBuffer.java
=======================================
--- /branches/red5sip/src/java/org/red5/sip/app/BytesBuffer.java Thu Feb 21
09:21:48 2013
+++ /branches/red5sip/src/java/org/red5/sip/app/BytesBuffer.java Mon Mar 18
01:52:03 2013
@@ -28,7 +28,11 @@
}
protected int available() {
- return (end > start) ? (end - start) : (buffersCount - start + end);
+ if(start >= 0) {
+ return (end > start) ? (end - start) : (buffersCount - start + end);
+ } else {
+ return 0;
+ }
}
protected float bufferUsage() {