From 1c647504c9a9a34424467ef6bfa04f565c326aec Mon Sep 17 00:00:00 2001 From: Preston Date: Fri, 25 Feb 2022 17:51:02 -0500 Subject: [PATCH] Ignore quality options if can't find matching bitrate --- src/renderer/components/ft-video-player/ft-video-player.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js index 95ff4cae..cc8d00cf 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -996,7 +996,7 @@ export default Vue.extend({ if (this.maxFramerate === 60 && quality.height >= 480) { for (let i = 0; i < this.adaptiveFormats.length; i++) { if (this.adaptiveFormats[i].bitrate === quality.bitrate) { - fps = this.adaptiveFormats[i].fps + fps = this.adaptiveFormats[i].fps ? this.adaptiveFormats[i].fps : 30 break } } @@ -1193,6 +1193,10 @@ export default Vue.extend({ return format.bitrate === quality.bitrate }) + if (typeof adaptiveFormat === 'undefined') { + return + } + this.activeAdaptiveFormats.push(adaptiveFormat) fps = adaptiveFormat.fps ? adaptiveFormat.fps : 30