aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/util/av/impl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-24 03:36:58 +0200
committerSven Gothel <[email protected]>2023-09-24 03:36:58 +0200
commit3dc4d80b0b8b0d4d82368b229ee403bf5937e1de (patch)
tree275142a971cd885e70e6c8e2d999f864f34339ec /src/jogl/classes/jogamp/opengl/util/av/impl
parentff36502e7ffeb9108368c517c401fad120b73d0a (diff)
GLMediaPlayer: Stop audio streaming to AudioSink on zero volume (Flush on mute and play on un-mute)
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av/impl')
-rw-r--r--src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java
index 7b86b012d..91cf5f29d 100644
--- a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java
+++ b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java
@@ -900,7 +900,7 @@ public class FFMPEGMediaPlayer extends GLMediaPlayerImpl {
final void pushSound(final ByteBuffer sampleData, final int data_size, final int audio_pts) {
setFirstAudioPTS2SCR( audio_pts );
- if( 1.0f == getPlaySpeed() || audioSinkPlaySpeedSet ) {
+ if( !isAudioMuted() && ( 1.0f == getPlaySpeed() || audioSinkPlaySpeedSet ) ) {
audioSink.enqueueData( audio_pts, sampleData, data_size);
}
}