mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
improve the performance at checking if a video is panorama
This commit is contained in:
parent
53cf27aa01
commit
50bc2f45b5
1 changed files with 1 additions and 1 deletions
|
@ -741,7 +741,7 @@ fun Context.parseFileChannel(path: String, fc: FileChannel, level: Int, start: L
|
|||
|
||||
val sb = StringBuilder()
|
||||
val buffer = ByteArray(1024)
|
||||
while (true) {
|
||||
while (sb.length < size) {
|
||||
val n = fis.read(buffer)
|
||||
if (n != -1) {
|
||||
sb.append(String(buffer, 0, n))
|
||||
|
|
Loading…
Reference in a new issue