From c5e0818072730985f8d2d4c4b227aa937ba53595 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 15 Mar 2023 02:43:23 +0100 Subject: GLMediaPlayer usage: Fix verbose strings, disable verbose in GraphUI demos --- src/demos/com/jogamp/opengl/demos/av/MovieSimple.java | 4 ++-- .../com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java | 2 +- src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/demos/com/jogamp') diff --git a/src/demos/com/jogamp/opengl/demos/av/MovieSimple.java b/src/demos/com/jogamp/opengl/demos/av/MovieSimple.java index 27735f4c7..9e61e8661 100644 --- a/src/demos/com/jogamp/opengl/demos/av/MovieSimple.java +++ b/src/demos/com/jogamp/opengl/demos/av/MovieSimple.java @@ -385,8 +385,8 @@ public class MovieSimple implements GLEventListener { @Override public void attributesChanged(final GLMediaPlayer mp, final int event_mask, final long when) { - System.err.println("MovieCube AttributesChanges: events_mask 0x"+Integer.toHexString(event_mask)+", when "+when); - System.err.println("MovieCube State: "+mp); + System.err.println("MovieSimple AttributesChanges: events_mask 0x"+Integer.toHexString(event_mask)+", when "+when); + System.err.println("MovieSimple State: "+mp); if( 0 != ( GLMediaEventListener.EVENT_CHANGE_EOS & event_mask ) ) { new InterruptSource.Thread() { @Override diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java b/src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java index cb1aaa041..5dee77f2a 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/GPUUISceneGLListener0A.java @@ -558,7 +558,7 @@ public class GPUUISceneGLListener0A implements GLEventListener { final MediaButton mPlayerButton = new MediaButton(scene.getVertexFactory(), renderModes, button2XSize, button2YSize, mPlayer); mPlayerButton.setName(BUTTON_MOVIE); - mPlayerButton.setVerbose(true); + mPlayerButton.setVerbose(false); mPlayerButton.addDefaultEventListener(); mPlayerButton.move(xStartRight, yStartTop - diffY*1, 0f); mPlayerButton.setToggleable(true); diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java index 7ba6c135b..87828f3e5 100644 --- a/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java +++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UISceneDemo01.java @@ -198,7 +198,7 @@ public class UISceneDemo00 implements GLEventListener { final GLMediaPlayer mPlayer = GLMediaPlayerFactory.createDefault(); // mPlayer.setTextureUnit(texUnitMediaPlayer); final MediaButton b = new MediaButton(SVertex.factory(), renderModes, sw, sh, mPlayer); - b.setVerbose(true); + b.setVerbose(false); b.addDefaultEventListener(); b.setToggleable(true); b.setToggle(true); -- cgit v1.2.3