From 19895532b6b605f3a839071c6082214b06dd89bb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 11 Aug 2023 05:25:39 +0200 Subject: GLMediaPlayer: Show more reasonable DEBUG output in factory; Impl initGL(GL) shall handle null streamWorker, i.e. when using NullGLMediaPlayer --- src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl') 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; -- cgit v1.2.3