Skip to content

Commit

Permalink
🐛 Fix incorrect type conversion with the Live-Photo's duration on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 21, 2024
1 parent 573e227 commit 422b8de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ To know more about breaking changes, see the [Migration Guide][].
- Optimize task priority handling on Darwin by automatically assigning QoS levels based on method types.
- Optimize the default sort descriptors on Darwin.

### Fixes

- Fix incorrect type conversion with the Live-Photo's duration on Darwin.

## 3.6.2

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/core/PMManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ - (void)getDurationWithOptions:(NSString *)assetId
return;
}
NSTimeInterval time = CMTimeGetSeconds(context.duration);
[handler reply:@(time)];
[handler reply:@((long) time)];
}];
return;
}
Expand Down

0 comments on commit 422b8de

Please sign in to comment.