diff options
Diffstat (limited to 'server/initializers/checker-before-init.ts')
-rw-r--r-- | server/initializers/checker-before-init.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts index 4f46d406a..9dfb5d68c 100644 --- a/server/initializers/checker-before-init.ts +++ b/server/initializers/checker-before-init.ts | |||
@@ -77,7 +77,7 @@ async function checkFFmpeg (CONFIG: { TRANSCODING: { ENABLED: boolean } }) { | |||
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||
80 | checkFFmpegEncoders() | 80 | return checkFFmpegEncoders() |
81 | } | 81 | } |
82 | 82 | ||
83 | // Optional encoders, if present, can be used to improve transcoding | 83 | // Optional encoders, if present, can be used to improve transcoding |
@@ -95,10 +95,10 @@ async function checkFFmpegEncoders (): Promise<Map<string, boolean>> { | |||
95 | supportedOptionalEncoders = new Map<string, boolean>() | 95 | supportedOptionalEncoders = new Map<string, boolean>() |
96 | 96 | ||
97 | for (const encoder of optionalEncoders) { | 97 | for (const encoder of optionalEncoders) { |
98 | supportedOptionalEncoders.set(encoder, | 98 | supportedOptionalEncoders.set(encoder, encoders[encoder] !== undefined) |
99 | encoders[encoder] !== undefined | ||
100 | ) | ||
101 | } | 99 | } |
100 | |||
101 | return supportedOptionalEncoders | ||
102 | } | 102 | } |
103 | 103 | ||
104 | // --------------------------------------------------------------------------- | 104 | // --------------------------------------------------------------------------- |