diff options
Diffstat (limited to 'mvc/video.py')
-rw-r--r-- | mvc/video.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mvc/video.py b/mvc/video.py index fb46df9..576286d 100644 --- a/mvc/video.py +++ b/mvc/video.py @@ -261,10 +261,10 @@ def get_media_info(filepath): def get_thumbnail(filename, width, height, output, completion, skip=0): name = 'Thumbnail - %r @ %sx%s' % (filename, width, height) def run(): - rv = get_thumbnail_synchronous(filename, width, height, output, skip) - idle_add(lambda: completion(rv)) - t = threading.Thread(target=run, name=name) - t.start() + rv = get_thumbnail_synchronous(filename, width, height, output, skip) + idle_add(lambda: completion(rv)) + t = threading.Thread(target=run, name=name) + t.start() def get_thumbnail_synchronous(filename, width, height, output, skip=0): executable = get_ffmpeg_executable_path() @@ -275,8 +275,8 @@ def get_thumbnail_synchronous(filename, width, height, output, skip=0): # filter_ = 'thumbnail,' + filter_ commandline = [executable, '-ss', str(skip), - '-i', convert_path_for_subprocess(filename), - '-vf', filter_, '-vframes', '1', output] + '-i', convert_path_for_subprocess(filename), + '-vf', filter_, '-vframes', '1', output] try: execute.check_output(commandline) except execute.CalledProcessError, e: |