From 1672233124e425e5446e1ae87974af248784be3c Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Fri, 2 Feb 2024 08:33:30 +0100 Subject: GLMediaPlayerImpl.StreamWorker: Don't grow videoFramesFree since having removed buffer grow in commit 68ca5b14966cb7eec9501c17dc8b3b465421a68e --- src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/jogl/classes/jogamp') diff --git a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java index 6d71dd43e..2446fb15b 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java +++ b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java @@ -1717,10 +1717,6 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer { if( STREAM_WORKER_DELAY > 0 ) { java.lang.Thread.sleep(STREAM_WORKER_DELAY); } - final int capacityDelta = videoFramesFree.capacity() - videoFramesDecoded.capacity(); - if( videoFramesDecoded.isFull() && capacityDelta > 0 ) { - videoFramesDecoded.growFullBuffer( capacityDelta ); - } if( !videoFramesDecoded.put(nextFrame) ) { throw new InternalError("XXX: free "+videoFramesFree+", decoded "+videoFramesDecoded+", "+GLMediaPlayerImpl.this); } -- cgit v1.2.3