mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 19:13:03 +00:00
Revert "Fix the double-free bug and disable double free debugging."
This reverts commit 9bb395501172f754baacc1efe6f09af55627fa15.
This commit is contained in:
parent
ff50b5fdab
commit
45120e79e4
@ -6,7 +6,7 @@ public class AvByteBufferPool {
|
|||||||
private ConcurrentLinkedQueue<byte[]> bufferList = new ConcurrentLinkedQueue<byte[]>();
|
private ConcurrentLinkedQueue<byte[]> bufferList = new ConcurrentLinkedQueue<byte[]>();
|
||||||
private int bufferSize;
|
private int bufferSize;
|
||||||
|
|
||||||
private static final boolean doubleFreeDebug = false;
|
private static final boolean doubleFreeDebug = true;
|
||||||
|
|
||||||
public AvByteBufferPool(int size)
|
public AvByteBufferPool(int size)
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@ import java.util.concurrent.ConcurrentLinkedQueue;
|
|||||||
public class AvObjectPool<T> {
|
public class AvObjectPool<T> {
|
||||||
private ConcurrentLinkedQueue<T> objectList = new ConcurrentLinkedQueue<T>();
|
private ConcurrentLinkedQueue<T> objectList = new ConcurrentLinkedQueue<T>();
|
||||||
|
|
||||||
private static final boolean doubleFreeDebug = false;
|
private static final boolean doubleFreeDebug = true;
|
||||||
|
|
||||||
public void purge()
|
public void purge()
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ public class AvShortBufferPool {
|
|||||||
private ConcurrentLinkedQueue<short[]> bufferList = new ConcurrentLinkedQueue<short[]>();
|
private ConcurrentLinkedQueue<short[]> bufferList = new ConcurrentLinkedQueue<short[]>();
|
||||||
private int bufferSize;
|
private int bufferSize;
|
||||||
|
|
||||||
private static final boolean doubleFreeDebug = false;
|
private static final boolean doubleFreeDebug = true;
|
||||||
|
|
||||||
public AvShortBufferPool(int size)
|
public AvShortBufferPool(int size)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ public class AvVideoDepacketizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Construct the H264 decode unit
|
// Construct the H264 decode unit
|
||||||
AvDecodeUnit du = AvDecodeUnit.newDecodeUnit(AvDecodeUnit.TYPE_H264, new LinkedList<AvByteBufferDescriptor>(avcNalDataChain), avcNalDataLength, flags);
|
AvDecodeUnit du = AvDecodeUnit.newDecodeUnit(AvDecodeUnit.TYPE_H264, avcNalDataChain, avcNalDataLength, flags);
|
||||||
if (!decodedUnits.offer(du))
|
if (!decodedUnits.offer(du))
|
||||||
{
|
{
|
||||||
releaseDecodeUnit(du);
|
releaseDecodeUnit(du);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user