cleaner media player clear
This commit is contained in:
parent
1f75f8f10e
commit
9b48ade118
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,12 @@ public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer implemen
|
|||
@Override
|
||||
public void clear() {
|
||||
super.clear();
|
||||
if (filesToPlay != null){
|
||||
filesToPlay.clear();
|
||||
}
|
||||
if (mediaPlayer != null){
|
||||
mediaPlayer.release();
|
||||
}
|
||||
mediaPlayer = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue