fix audio not stopping or overlapping

make sure we always send bytes
This commit is contained in:
Damien Elmes 2016-12-17 13:47:07 +10:00
parent 9c04ac6a8e
commit f9385572df

View File

@ -104,7 +104,7 @@ class MplayerMonitor(threading.Thread):
# clearing queue?
if mplayerClear and self.mplayer:
try:
self.mplayer.stdin.write("stop\n")
self.mplayer.stdin.write(b"stop\n")
self.mplayer.stdin.flush()
except:
# mplayer quit by user (likely video)
@ -153,7 +153,7 @@ class MplayerMonitor(threading.Thread):
if not self.mplayer:
return
try:
self.mplayer.stdin.write("quit\n")
self.mplayer.stdin.write(b"quit\n")
self.mplayer.stdin.flush()
self.deadPlayers.append(self.mplayer)
except: