-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor change to still image on mjpeg #18602
Conversation
end_idx = chunk.find(data_end) | ||
if end_idx != -1: | ||
return data[data.find(data_start):] + chunk[:end_idx + 2] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line contains whitespace
Good idea! Looks good. |
I've been testing this in 0.84.0b4. Am I missing something? |
Okay, will revert this then. |
Well, at least we should not look for start all the time. |
using 0.84.0b4 version and sense versions 0.83.3 my camera preview wont work
if you click on blank image you can see the camera working, it seems the dev info:
|
Hello,
May I suggest this "minor" improvement o still images.
Instead of finding on data structure for start and end, all the time, lets search for the end in chunks.
That's the approach I'm using both for HA and my motion/object detection system.
All the best,
Nuno