aboutsummaryrefslogtreecommitdiffstats
path: root/player_vlc.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2022-01-09 18:48:55 +0100
committerEddy Pedroni <eddy@0xf7.com>2022-01-09 18:48:55 +0100
commitd6403961e778db1f0f6a5e45147770714449fa8c (patch)
tree6c5f5c5820ac5f6b2b4b5072496c5d2f22f0148f /player_vlc.py
parentc2d40c6dc0c14edd96bf9832d097347b15f672e3 (diff)
Fixed MIDI controller bug
Diffstat (limited to 'player_vlc.py')
-rw-r--r--player_vlc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/player_vlc.py b/player_vlc.py
index a7244bb..283102e 100644
--- a/player_vlc.py
+++ b/player_vlc.py
@@ -36,6 +36,7 @@ class Player:
return self._player.audio_get_volume() / 100.0
def setCurrentSong(self, path):
+ self._player.stop()
media = vlc.Media(path)
self._player.set_media(media)