changeset 14229:86cfbca6483b

7076354: JavaSoundAudioClip stop() Method sequencer.addMetaEventListener(this); wrong? Reviewed-by: amenkov
author serb
date Tue, 05 Apr 2016 17:44:19 +0300
parents d1e50e022128
children 5efc1194fa78
files src/java.desktop/share/classes/com/sun/media/sound/JavaSoundAudioClip.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/com/sun/media/sound/JavaSoundAudioClip.java	Tue Apr 05 17:30:23 2016 +0300
+++ b/src/java.desktop/share/classes/com/sun/media/sound/JavaSoundAudioClip.java	Tue Apr 05 17:44:19 2016 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2016, 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
@@ -232,7 +232,7 @@
         } else if (sequencer != null) {
             try {
                 sequencerloop = false;
-                sequencer.addMetaEventListener(this);
+                sequencer.removeMetaEventListener(this);
                 sequencer.stop();
             } catch (Exception e3) {
                 if (Printer.err) e3.printStackTrace();