Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor: Remove unnecessary local variable for sessionId

Prateek Sunalb80cdcc19ec3
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dart
index c66cdda01d..30415f2e33 100644
--- a/mobile/apps/photos/lib/services/video_preview_service.dart
+++ b/mobile/apps/photos/lib/services/video_preview_service.dart
@@ -148,9 +148,8 @@ class VideoPreviewService {
clearQueue();
computeController.releaseCompute(stream: true);
- final sessionId = _currentFfmpegSessionId;
- if (sessionId != null) {
- await FFmpegKit.cancel(sessionId);
+ if (_currentFfmpegSessionId != null) {
+ await FFmpegKit.cancel(_currentFfmpegSessionId!);
_currentFfmpegSessionId = null;
}
}