cleaner media player clear

This commit is contained in:
sonora 2016-07-15 10:11:58 +02:00
parent 1f75f8f10e
commit 9b48ade118

View file

@ -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;
}