about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-11-25 15:47:23 +0100
committerThibaut Girka <thib@sitedethib.com>2020-11-25 15:47:23 +0100
commit4dab236690034aaee497336bf52d51ba06f71b18 (patch)
tree2d828c6df3dc8f972d5f2c2775ed97b46aed735d
parent51d0e1c7b4a4340a691fbcf0f0b4378519c6d21f (diff)
Default to 25 fps for frame seeking if framerate information isn't known
-rw-r--r--app/javascript/flavours/glitch/features/video/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/video/index.js b/app/javascript/flavours/glitch/features/video/index.js
index 7e8996af4..92dcaf473 100644
--- a/app/javascript/flavours/glitch/features/video/index.js
+++ b/app/javascript/flavours/glitch/features/video/index.js
@@ -544,7 +544,7 @@ class Video extends React.PureComponent {
       return this.props.frameRate.split('/').reduce((p, c) => p / c);
     }
 
-    return this.props.frameRate;
+    return this.props.frameRate || 25;
   }
 
   render () {