Commit d29a6fb369cda5cedf7995b22de30db013aeb842
1 parent
d0dfb3b2
Exists in
master
and in
4 other branches
Converts messages sent to the player to string objects
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
core/renderer.py
@@ -135,7 +135,7 @@ def send_to_video_creator(id, message): | @@ -135,7 +135,7 @@ def send_to_video_creator(id, message): | ||
135 | # Stablishes connection with video creator server. | 135 | # Stablishes connection with video creator server. |
136 | socket = open_socket_connection() | 136 | socket = open_socket_connection() |
137 | # Send gloss to video creator. | 137 | # Send gloss to video creator. |
138 | - socket.send(message.encode("utf-8")+DEFAULT_PTS) | 138 | + socket.send(str(message)+DEFAULT_PTS) |
139 | # Receive a response from the video creator | 139 | # Receive a response from the video creator |
140 | socket.recv(3) | 140 | socket.recv(3) |
141 | # Send the control message to video creator | 141 | # Send the control message to video creator |
@@ -174,7 +174,7 @@ def run(ch, method, properties, body): | @@ -174,7 +174,7 @@ def run(ch, method, properties, body): | ||
174 | 174 | ||
175 | body = {"file": properties.correlation_id+".mp4", "size": filesize} | 175 | body = {"file": properties.correlation_id+".mp4", "size": filesize} |
176 | json.dumps(body) | 176 | json.dumps(body) |
177 | - | 177 | + |
178 | manager.send_to_queue("videos", body, properties) | 178 | manager.send_to_queue("videos", body, properties) |
179 | 179 | ||
180 | clean(properties.correlation_id) | 180 | clean(properties.correlation_id) |