summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-25 17:08:10 +0100
committerSven Gothel <[email protected]>2014-02-25 17:08:10 +0100
commit84395a04b63eec6dd9ecc90acde7e5570793f4fb (patch)
tree52f051102cb673aa271e31fc93c596821e42aedf /src
parent0e8f592a67ee43238eff4074f937d9cc4dc8dd11 (diff)
parentac7de4a7b2cc939312cbeb88dd709a297c96c13c (diff)
Merge remote-tracking branch 'xranby/master'
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java
index 7cea51dc8..6a0e0061f 100644
--- a/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java
+++ b/src/jogl/classes/jogamp/opengl/util/av/GLMediaPlayerImpl.java
@@ -1127,7 +1127,7 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer {
if( isBlocked && isActive ) {
this.interrupt();
}
- while( isActive ) {
+ while( isActive && isRunning ) {
try {
this.wait(); // wait until paused
} catch (InterruptedException e) {
@@ -1141,7 +1141,7 @@ public abstract class GLMediaPlayerImpl implements GLMediaPlayer {
if( isRunning && !isActive ) {
shallPause = false;
if( Thread.currentThread() != this ) {
- while( !isActive ) {
+ while( !isActive && !shallPause && isRunning ) {
this.notifyAll(); // wake-up pause-block
try {
this.wait(); // wait until resumed