aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video-transcoding.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/video-transcoding.ts')
-rw-r--r--server/lib/video-transcoding.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts
index e7108bd5a..078e85acf 100644
--- a/server/lib/video-transcoding.ts
+++ b/server/lib/video-transcoding.ts
@@ -59,6 +59,8 @@ async function optimizeOriginalVideofile (video: MVideoWithFile, inputVideoFileA
59 const videoOutputPath = getVideoFilePath(video, inputVideoFile) 59 const videoOutputPath = getVideoFilePath(video, inputVideoFile)
60 60
61 await onVideoFileTranscoding(video, inputVideoFile, videoTranscodedPath, videoOutputPath) 61 await onVideoFileTranscoding(video, inputVideoFile, videoTranscodedPath, videoOutputPath)
62
63 return transcodeType
62 } catch (err) { 64 } catch (err) {
63 // Auto destruction... 65 // Auto destruction...
64 video.destroy().catch(err => logger.error('Cannot destruct video after transcoding failure.', { err })) 66 video.destroy().catch(err => logger.error('Cannot destruct video after transcoding failure.', { err }))