summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-08-11 05:25:39 +0200
committerSven Gothel <[email protected]>2023-08-11 05:25:39 +0200
commit19895532b6b605f3a839071c6082214b06dd89bb (patch)
tree1a54c21f7b16554e32ffc25db62f3401f70476de /src/jogl/classes/jogamp/opengl
parent1442d8dc875af3e945e656509105c89e394647c3 (diff)
GLMediaPlayer: Show more reasonable DEBUG output in factory; Impl initGL(GL) shall handle null streamWorker, i.e. when using NullGLMediaPlayer
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r--src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java
index eb4ef5713..4133a50fd 100644
--- a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java
+++ b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java
@@ -704,10 +704,12 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer {
{
streamWorker = new StreamWorker();
}
- streamWorker.initGL(gl);
- streamWorker.doResume();
- changeState(new GLMediaPlayer.EventMask(), State.Paused);
- resume();
+ if( null != streamWorker ) {
+ streamWorker.initGL(gl);
+ streamWorker.doResume();
+ changeState(new GLMediaPlayer.EventMask(), State.Paused);
+ resume();
+ }
} else if( null == gl ) {
width = 0;
height = 0;