summaryrefslogtreecommitdiff
path: root/mediabrowser/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediabrowser/__init__.py')
-rw-r--r--mediabrowser/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediabrowser/__init__.py b/mediabrowser/__init__.py
index 8766ac2..62aeb48 100644
--- a/mediabrowser/__init__.py
+++ b/mediabrowser/__init__.py
@@ -154,8 +154,8 @@ def build(root_directory, cache):
if client_mtime is not None and mtime <= client_mtime:
return Response(status=304)
else:
- thumbnail_stream = ffmpeg.thumbnail_video(ospath, 90, 50)
- r = Response(thumbnail_stream, mimetype="video/webm")
+ process = ffmpeg.thumbnail_video(ospath, 90, 50)
+ r = Response(process.stdout, mimetype="video/webm")
r.last_modified = mtime
return r