diff options
author | Sven Göthel <[email protected]> | 2024-01-28 09:20:11 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-28 09:20:11 +0100 |
commit | c5bca1f0dba2540088e8e2a90d720fdbc4870b30 (patch) | |
tree | d4551065e02448e034fed875ea545a844898f8be /src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java | |
parent | 28e5b66e6e201259c6ad240552045314d2072595 (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.java | 3 |
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(); } |