Commits on Source (3)
-
It was only used with Android API 21 and 22 (Android 5.x). Remove this code that behave differently than all other write methods and that is not as tested as the others.
ccd3eaae -
17e4aee3
-
Don't try to copy the whole frame to the jarray buffer but copy it chunk by chunk (50ms max). Therefore, a same frame can now be used for more than one java write. This fixes the following error and abort when allocating a too big jarray (likely when sending a lot of silence to catch up with a playback way to early). E VLC : [9b14b710/138c] libvlc generic: jarray allocation failed E VLC : [9b14b710/138c] libvlc generic: Write failed: ERROR F DEBUG : Abort message: 'art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: JNI GetJavaVM called with pending exception java.lang.OutOfMemoryError: Failed to allocate a 99591132 byte allocation with 3792244 free bytes and 90MB until OOM'
a235b9dd