Stop the player before clearing the play queue.

This commit is contained in:
Jonathan Bernard 2016-06-01 11:30:45 -05:00
parent a2c5c13ef4
commit 451956dc4f

View File

@ -1474,6 +1474,7 @@ Library Management:
p.lastUsed = new Timestamp(new Date().time) p.lastUsed = new Timestamp(new Date().time)
playQueue = library.update(p) playQueue = library.update(p)
vlcj.mediaListPlayer.stop()
vlcj.mediaList.clear() vlcj.mediaList.clear()
library.getMediaFilesWhere(playlistId: playQueue.id).each { library.getMediaFilesWhere(playlistId: playQueue.id).each {