forked from external-repos/esp32cam-rtsp
Fix for crash getting frame buffer
This commit is contained in:
@@ -149,10 +149,9 @@ void handle_snapshot()
|
||||
return;
|
||||
}
|
||||
|
||||
cam.run();
|
||||
if (cam.getSize() == 0 || cam.getfb() == nullptr)
|
||||
if (cam.getfb() == nullptr)
|
||||
{
|
||||
web_server.send(404, "text/plain", "Unable to obtain framebuffer");
|
||||
web_server.send(404, "text/plain", "Unable to obtain frame buffer from the camera");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user