Skip to content
Permalink
Browse files
8238567: SoftMainMixer.processAudioBuffers(): Wrong handling of stopp…
…edMixers

Reviewed-by: prr
  • Loading branch information
mrserb committed Apr 8, 2020
1 parent a62b24f commit f67e608861d52060f10112e551745285e6fb83d7
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -631,8 +631,8 @@ void processAudioBuffers() {
if (!hasactivevoices) {
synchronized (control_mutex) {
if (stoppedMixers != null) {
if (stoppedMixers.contains(cmixer)) {
stoppedMixers.remove(cmixer);
if (stoppedMixers.contains(cmixer.mixer)) {
stoppedMixers.remove(cmixer.mixer);
cmixer.mixer.stop();
}
}

0 comments on commit f67e608

Please sign in to comment.