Free audio packets back to the packet pool after decoding.
This commit is contained in:
@@ -170,8 +170,9 @@ public class NvAudioStream {
|
||||
return;
|
||||
}
|
||||
|
||||
// !!! We no longer own the data buffer at this point !!!
|
||||
depacketizer.decodeInputData(packet);
|
||||
|
||||
pool.free(packet.getBackingBuffer());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user