Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: issue

Prateek Sunal142a5f966157
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dart
index 39911429f3..59462e1c2a 100644
--- a/mobile/apps/photos/lib/services/video_preview_service.dart
+++ b/mobile/apps/photos/lib/services/video_preview_service.dart
@@ -751,12 +751,12 @@ class VideoPreviewService {
}
final int size = enteFile.fileSize!;
final int duration = enteFile.duration!;
- // if (size >= 500 * 1024 * 1024 || duration > 60) {
- // _logger.info(
- // "Skip Preview due to size: $size or duration: $duration",
- // );
- // return (null, true, null);
- // }
+ if (size >= 500 * 1024 * 1024 || duration > 60) {
+ _logger.info(
+ "Skip Preview due to size: $size or duration: $duration",
+ );
+ return (null, true, null);
+ }
FFProbeProps? props;
File? file;
bool skipFile = false;