From 682becf5b5115c2a206b4f0bdee413d4be8b5bef Mon Sep 17 00:00:00 2001 From: NotTsunami Date: Thu, 16 Jan 2020 14:05:46 -0500 Subject: [PATCH] server: Add equals operator in mpv options (#49) Following mpv-player/mpv@d3cef97, all options passed to mpv require the format "mpv --o='path'" instead of "mpv --o 'path'". This change should be backwards compatible with older mpv versions as well. --- src/thumbnailer_server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thumbnailer_server.lua b/src/thumbnailer_server.lua index 1326fdb..c417b29 100644 --- a/src/thumbnailer_server.lua +++ b/src/thumbnailer_server.lua @@ -59,7 +59,7 @@ function create_thumbnail_mpv(file_path, timestamp, size, output_path, options) "--vf-add=format=bgra", "--of=rawvideo", "--ovc=rawvideo", - "--o", output_path + "--o=" .. output_path }) return utils.subprocess({args=mpv_command}) end