mirror of
https://github.com/espressif/esp32-camera.git
synced 2025-07-18 00:50:19 +08:00
Fix race condition
This commit is contained in:
@ -199,6 +199,7 @@ esp_err_t jpg_stream_httpd_handler(httpd_req_t *req){
|
|||||||
if (!fb) {
|
if (!fb) {
|
||||||
ESP_LOGE(TAG, "Camera capture failed");
|
ESP_LOGE(TAG, "Camera capture failed");
|
||||||
res = ESP_FAIL;
|
res = ESP_FAIL;
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
if(fb->format != PIXFORMAT_JPEG){
|
if(fb->format != PIXFORMAT_JPEG){
|
||||||
bool jpeg_converted = frame2jpg(fb, 80, &_jpg_buf, &_jpg_buf_len);
|
bool jpeg_converted = frame2jpg(fb, 80, &_jpg_buf, &_jpg_buf_len);
|
||||||
|
Reference in New Issue
Block a user