aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util')
-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;