Bläddra i källkod

AspectRatio: Add ratio for video

Neeraj Gupta 2 år sedan
förälder
incheckning
3eca68f21d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      lib/utils/file_uploader_util.dart

+ 1 - 1
lib/utils/file_uploader_util.dart

@@ -150,7 +150,7 @@ Future<MediaUploadData> _getMediaUploadDataFromAssetFile(ente.File file) async {
   }
   }
   isDeleted = !(await asset.exists);
   isDeleted = !(await asset.exists);
   int? h, w;
   int? h, w;
-  if (asset.type != AssetType.video && asset.width != 0 && asset.height != 0) {
+  if (asset.width != 0 && asset.height != 0) {
     h = asset.height;
     h = asset.height;
     w = asset.width;
     w = asset.width;
   }
   }