mirror of
https://github.com/rzeldent/esp32cam-rtsp.git
synced 2025-11-16 21:18:01 +00:00
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