Open dburckh opened 4 years ago
https://github.com/israel-fl/bitmap2video/blob/f51c404aed29e5f7043144a2ddc738f51b589d21/library/src/main/java/com/homesoft/encoder/FrameBuilder.kt#L97
Looks like you are creating and locking Canvas in a loop. Probably just call it at the top and bail out if it's null since you can't do anything then.
https://github.com/israel-fl/bitmap2video/blob/f51c404aed29e5f7043144a2ddc738f51b589d21/library/src/main/java/com/homesoft/encoder/FrameBuilder.kt#L97
Looks like you are creating and locking Canvas in a loop. Probably just call it at the top and bail out if it's null since you can't do anything then.