aboutsummaryrefslogtreecommitdiff
path: root/video_thread.py
diff options
context:
space:
mode:
authormartin2016-09-07 20:48:35 +0200
committerGitHub2016-09-07 20:48:35 +0200
commit0b7ddf898cbe413789741e8e289a96f20a4fb49b (patch)
treee142d922a1ddbfde5c106659fc145d45cf39a0db /video_thread.py
parent38cfae0b4e30fdc19612f5873aec09ea69e74486 (diff)
parent2bd9557173e10d9d68e1cba9d78518e38bce4787 (diff)
Merge pull request #2 from rikai/master
Updates to work with modern libraries
Diffstat (limited to 'video_thread.py')
-rw-r--r--video_thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/video_thread.py b/video_thread.py
index 5a8120b..ed2af84 100644
--- a/video_thread.py
+++ b/video_thread.py
@@ -70,7 +70,7 @@ class Worker(QtCore.QObject):
# write to out_pipe
try:
- out_pipe.stdin.write(im.tostring())
+ out_pipe.stdin.write(im.tobytes())
finally:
True
@@ -89,4 +89,4 @@ class Worker(QtCore.QObject):
out_pipe.wait()
print("Video file created")
self.progressBarUpdate.emit(100)
- self.videoCreated.emit() \ No newline at end of file
+ self.videoCreated.emit()