Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix: Do not request compute lock if streaming is disabled

Neeraj Guptadb8fa98ac678
diff --git a/mobile/lib/services/video_preview_service.dart b/mobile/lib/services/video_preview_service.dart
index c63d6d775b..b5b9bf4d95 100644
--- a/mobile/lib/services/video_preview_service.dart
+++ b/mobile/lib/services/video_preview_service.dart
@@ -856,6 +856,10 @@ class VideoPreviewService {
}
void queueFiles({Duration duration = const Duration(seconds: 5)}) {
+ if (!isVideoStreamingEnabled) {
+ _logger.fine("Video streaming is disabled, not queuing files");
+ return;
+ }
Future.delayed(duration, () {
if (!_hasQueuedFile && computeController.requestCompute(stream: true)) {
_putFilesForPreviewCreation(true).catchError((_) {