juancarmena / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Make IBuffer.getByteBuffer return java.nio.ByteBuffers that can outlive the parent IBuffer #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Today if you call IBuffer.getByteBuffer() you must make sure the instance
of IBuffer you got the java.nio.ByteBuffer from lives longer than the
ByteBuffer or a Java core-dump can result.

As we discover more valid uses for getting the raw underlying bytes from an
object, this is proving hard to justify, so instead we should make that
method safe to use even if IBuffers get collected.

Original issue reported on code.google.com by art.cla...@gmail.com on 17 Mar 2009 at 1:00

GoogleCodeExporter commented 8 years ago
Implemented in r235.

Original comment by art.cla...@gmail.com on 17 Mar 2009 at 1:01