aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-28 09:20:11 +0100
committerSven Göthel <[email protected]>2024-01-28 09:20:11 +0100
commitc5bca1f0dba2540088e8e2a90d720fdbc4870b30 (patch)
treed4551065e02448e034fed875ea545a844898f8be /src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
parent28e5b66e6e201259c6ad240552045314d2072595 (diff)
Cleanup GLMediaPlayer.EventMask.Bit handling in GLMediaEventListener implementations: Either Uninit, Init, Pause or Play (exclusive)
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
index ff3747bdf..894ab5cb9 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java
@@ -171,8 +171,7 @@ public class MediaButton extends TexSeqButton {
}
if( eventMask.isSet(GLMediaPlayer.EventMask.Bit.Uninit) ) {
clearSubtitleCache();
- }
- if( eventMask.isSet(GLMediaPlayer.EventMask.Bit.Init) ) {
+ } else if( eventMask.isSet(GLMediaPlayer.EventMask.Bit.Init) ) {
resetGL = true;
clearSubtitleCache();
}