From 45120e79e48b7b1ba771a70d347b2546c87fc1e8 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 21 Nov 2013 16:24:52 -0500 Subject: [PATCH] Revert "Fix the double-free bug and disable double free debugging." This reverts commit 9bb395501172f754baacc1efe6f09af55627fa15. --- src/com/limelight/nvstream/av/AvByteBufferPool.java | 2 +- src/com/limelight/nvstream/av/AvObjectPool.java | 2 +- src/com/limelight/nvstream/av/AvShortBufferPool.java | 2 +- src/com/limelight/nvstream/av/video/AvVideoDepacketizer.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/limelight/nvstream/av/AvByteBufferPool.java b/src/com/limelight/nvstream/av/AvByteBufferPool.java index 8cfbcc5a..0fe652af 100644 --- a/src/com/limelight/nvstream/av/AvByteBufferPool.java +++ b/src/com/limelight/nvstream/av/AvByteBufferPool.java @@ -6,7 +6,7 @@ public class AvByteBufferPool { private ConcurrentLinkedQueue bufferList = new ConcurrentLinkedQueue(); private int bufferSize; - private static final boolean doubleFreeDebug = false; + private static final boolean doubleFreeDebug = true; public AvByteBufferPool(int size) { diff --git a/src/com/limelight/nvstream/av/AvObjectPool.java b/src/com/limelight/nvstream/av/AvObjectPool.java index 1bde62cc..d751be98 100644 --- a/src/com/limelight/nvstream/av/AvObjectPool.java +++ b/src/com/limelight/nvstream/av/AvObjectPool.java @@ -5,7 +5,7 @@ import java.util.concurrent.ConcurrentLinkedQueue; public class AvObjectPool { private ConcurrentLinkedQueue objectList = new ConcurrentLinkedQueue(); - private static final boolean doubleFreeDebug = false; + private static final boolean doubleFreeDebug = true; public void purge() { diff --git a/src/com/limelight/nvstream/av/AvShortBufferPool.java b/src/com/limelight/nvstream/av/AvShortBufferPool.java index 84939ca1..9f7a956c 100644 --- a/src/com/limelight/nvstream/av/AvShortBufferPool.java +++ b/src/com/limelight/nvstream/av/AvShortBufferPool.java @@ -6,7 +6,7 @@ public class AvShortBufferPool { private ConcurrentLinkedQueue bufferList = new ConcurrentLinkedQueue(); private int bufferSize; - private static final boolean doubleFreeDebug = false; + private static final boolean doubleFreeDebug = true; public AvShortBufferPool(int size) { diff --git a/src/com/limelight/nvstream/av/video/AvVideoDepacketizer.java b/src/com/limelight/nvstream/av/video/AvVideoDepacketizer.java index 3bdddcc0..646b0b7d 100644 --- a/src/com/limelight/nvstream/av/video/AvVideoDepacketizer.java +++ b/src/com/limelight/nvstream/av/video/AvVideoDepacketizer.java @@ -125,7 +125,7 @@ public class AvVideoDepacketizer { } // Construct the H264 decode unit - AvDecodeUnit du = AvDecodeUnit.newDecodeUnit(AvDecodeUnit.TYPE_H264, new LinkedList(avcNalDataChain), avcNalDataLength, flags); + AvDecodeUnit du = AvDecodeUnit.newDecodeUnit(AvDecodeUnit.TYPE_H264, avcNalDataChain, avcNalDataLength, flags); if (!decodedUnits.offer(du)) { releaseDecodeUnit(du);