make sure we don't mutate list passed to play_from_tags()

This commit is contained in:
Damien Elmes 2020-01-21 14:43:33 +10:00
parent 98802c9c9a
commit 7504ef6857

View File

@ -87,7 +87,7 @@ class AVPlayer:
def play_tags(self, tags: List[AVTag]) -> None:
"""Clear the existing queue, then start playing provided tags."""
self._enqueued = tags
self._enqueued = tags[:]
if self.interrupt_current_audio:
self._stop_if_playing()
self._play_next_if_idle()