From de1d36f2dc3266e08c5a07651ebe88398b6ffe6f Mon Sep 17 00:00:00 2001 From: Ian Walton Date: Sat, 10 Apr 2021 11:37:17 -0400 Subject: [PATCH] Fix issues. --- src/plugins/mpvVideoPlayer/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/mpvVideoPlayer/plugin.js b/src/plugins/mpvVideoPlayer/plugin.js index 7abb66537e..5153ac99d5 100644 --- a/src/plugins/mpvVideoPlayer/plugin.js +++ b/src/plugins/mpvVideoPlayer/plugin.js @@ -191,8 +191,8 @@ async function getApi() { tryGetFramerate(options) { if (options.mediaSource && options.mediaSource.MediaStreams) { - for (let stream of options.mediaSource.MediaStreams) { - if (stream.Type == "Video") { + for (const stream of options.mediaSource.MediaStreams) { + if (stream.Type == 'Video') { return stream.RealFrameRate || stream.AverageFrameRate || null; } }