Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] chore

ashilkn2916bcfda81b
diff --git a/mobile/lib/models/ffmpeg/ffprobe_props.dart b/mobile/lib/models/ffmpeg/ffprobe_props.dart
index e85430a62f..545a39c5ed 100644
--- a/mobile/lib/models/ffmpeg/ffprobe_props.dart
+++ b/mobile/lib/models/ffmpeg/ffprobe_props.dart
@@ -187,13 +187,13 @@ class FFProbeProps {
final width = stream[key];
if (width != null && width != 0) {
result._width = width.toString();
- parsedData[FFProbeKeys.width] = result._width;
+ parsedData[key] = result._width;
}
} else if (key == FFProbeKeys.height) {
final height = stream[key];
if (height != null && height != 0) {
result._height = height.toString();
- parsedData[FFProbeKeys.height] = result._height;
+ parsedData[key] = result._height;
}
} else if (key == FFProbeKeys.sideDataList) {
for (Map sideData in stream[key]) {
diff --git a/mobile/lib/ui/viewer/file/video_exif_dialog.dart b/mobile/lib/ui/viewer/file/video_exif_dialog.dart
index 59147378f4..ba650d469f 100644
--- a/mobile/lib/ui/viewer/file/video_exif_dialog.dart
+++ b/mobile/lib/ui/viewer/file/video_exif_dialog.dart
@@ -146,7 +146,8 @@ class VideoExifDialog extends StatelessWidget {
}
if (value == null) {
- return const SizedBox.shrink();
+ return const SizedBox
+ .shrink(); // Return an empty container if there's no data for the key.
}
return Padding(
padding: const EdgeInsets.symmetric(vertical: 4.0),