mylisabox / flutter_mjpeg

Flutter widget to show mjpeg stream from URL
BSD 2-Clause "Simplified" License
30 stars 23 forks source link

Fix for stream race conditions #15

Closed malamalca closed 3 years ago

malamalca commented 3 years ago

This PR addresses issue #14 with stream race conditions. Stream updates buffer faster than it is processed.

It changes asynchronous stream and image processing to synchronous.

jaumard commented 3 years ago

Could you try the branch bugfix/streamGlitch ? Not sure all the changes here are needed (or at least I hope lol) let me know please

malamalca commented 3 years ago

I've tried your bugfix/streamGlitch branch. It work perfectly.

jaumard commented 3 years ago

Cool! So it was the precaching that probably causes the trouble, I prefer to keep it async so I'll merge my branch and release it. But thanks a lot for your findings!