Closed mym0404 closed 6 months ago
When is use updateConfiguration for turn flash mode (torch(), off())
addFrameWithBuffer() method made memory leak.
and i recognized that
start() method is called 3~4 times at once.
So I just changed some code like below.
fun updateProcessorSafely(frameProcessor: FrameProcessor?) { if(!frameProcessors.isEmpty()) return clearProcessors() if (frameProcessor == null) { stop() } else { addProcessor(frameProcessor) start() } }
Sorry about ugly preview. I am newbie on Github.
I use single same frame processor, so i have no reason to update processor at updateConfiguartion() call
Same problem!
When is use updateConfiguration for turn flash mode (torch(), off())
addFrameWithBuffer() method made memory leak.
and i recognized that
start() method is called 3~4 times at once.
So I just changed some code like below.
Sorry about ugly preview. I am newbie on Github.
I use single same frame processor, so i have no reason to update processor at updateConfiguartion() call