aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-11-14 11:39:01 +0100
committerChocobozzz <me@florianbigard.com>2022-11-14 11:39:01 +0100
commit44e702ded455c118f9908b70d25e7c7e5512abe9 (patch)
tree5e317cc235f8dd488dd0a5800ba531940c10269a /server/controllers
parent4efa5535ccc947597b7a8e343d6665229ab9cfce (diff)
downloadPeerTube-44e702ded455c118f9908b70d25e7c7e5512abe9.tar.gz
PeerTube-44e702ded455c118f9908b70d25e7c7e5512abe9.tar.zst
PeerTube-44e702ded455c118f9908b70d25e7c7e5512abe9.zip
Prevent broken transcoding with audio only input
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/videos/transcoding.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/videos/transcoding.ts b/server/controllers/api/videos/transcoding.ts
index a39e47dfe..8c9a5322b 100644
--- a/server/controllers/api/videos/transcoding.ts
+++ b/server/controllers/api/videos/transcoding.ts
@@ -49,6 +49,8 @@ async function createTranscoding (req: express.Request, res: express.Response) {
49 49
50 const childrenResolutions = resolutions.filter(r => r !== maxResolution) 50 const childrenResolutions = resolutions.filter(r => r !== maxResolution)
51 51
52 logger.info('Manually creating transcoding jobs for %s.', body.transcodingType, { childrenResolutions, maxResolution })
53
52 const children = await Bluebird.mapSeries(childrenResolutions, resolution => { 54 const children = await Bluebird.mapSeries(childrenResolutions, resolution => {
53 if (body.transcodingType === 'hls') { 55 if (body.transcodingType === 'hls') {
54 return buildHLSJobOption({ 56 return buildHLSJobOption({