audio: Reset the pipeline whenever we reach EOS

This fixes a bug where a different track would be selected when hitting
"Play" after an autopause

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2021-12-10 12:00:20 -05:00
parent a85ac03517
commit be7e8e6073
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class Player(bass.BassPlayer):
def do_eos(self):
self.Autopause.decrement()
self.change_track(self.playlist.next_track())
self.change_track(self.playlist.next_track(), reset=True)
self.playing = self.Autopause.keep_playing
def play(self): self.playing = True