Update examples/player.py

This commit is contained in:
kokarare1212
2021-05-21 12:45:41 +09:00
parent 19e1dbbde6
commit 5173a6ba91

View File

@@ -101,7 +101,6 @@ def play(track_id_str: str):
while True: while True:
byte = stream.input_stream.stream().read() byte = stream.input_stream.stream().read()
if byte == -1: if byte == -1:
ffplay.kill()
return return
ffplay.stdin.write(bytes([byte])) ffplay.stdin.write(bytes([byte]))