From c5bca1f0dba2540088e8e2a90d720fdbc4870b30 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Sun, 28 Jan 2024 09:20:11 +0100 Subject: Cleanup GLMediaPlayer.EventMask.Bit handling in GLMediaEventListener implementations: Either Uninit, Init, Pause or Play (exclusive) --- src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/shapes/MediaButton.java') 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(); } -- cgit v1.2.3