Skip to content

Commit 3d04f35

Browse files
committed
#155 Update example(s)
1 parent dc90219 commit 3d04f35

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/player/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def play(track_id_str: str):
124124
stderr=subprocess.DEVNULL,
125125
)
126126
while True:
127-
byte = stream.input_stream.stream().read()
127+
byte = stream.input_stream.stream().read(1)
128128
if byte == -1:
129129
return
130130
ffplay.stdin.write(bytes([byte]))

examples/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def response(client: socket.socket, uri: str, header: dict,
110110
if (stream.input_stream.stream().pos() >=
111111
stream.input_stream.stream().size()):
112112
break
113-
byte = stream.input_stream.stream().read()
113+
byte = stream.input_stream.stream().read(1)
114114
client.send(bytes([byte]))
115115
return "", [], b"", True
116116
else:

0 commit comments

Comments
 (0)