fix stutter when multiple audio files on card on windows

setting playlist pos to 0 was causing half-played sound to restart
This commit is contained in:
Damien Elmes 2017-11-10 19:52:20 +10:00
parent 880243c361
commit b6972a22e8

View file

@ -92,9 +92,7 @@ class MpvManager(MPV):
def queueFile(self, file): def queueFile(self, file):
path = os.path.join(os.getcwd(), file) path = os.path.join(os.getcwd(), file)
self.command("loadfile", path, "append") self.command("loadfile", path, "append-play")
self.set_property("playlist-pos", 0)
self.set_property("pause", False)
def clearQueue(self): def clearQueue(self):
self.command("stop") self.command("stop")