Merge pull request #2428 from YixingShen/master

update video_capture
This commit is contained in:
Ha Thach
2024-01-30 10:00:26 +07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -193,6 +193,7 @@ void video_send_frame(void) {
if (!already_sent) {
already_sent = 1;
tx_busy = 1;
start_ms = board_millis();
#ifdef CFG_EXAMPLE_VIDEO_READONLY
#if defined(CFG_EXAMPLE_VIDEO_DISABLE_MJPEG)
@@ -211,6 +212,7 @@ void video_send_frame(void) {
if (cur - start_ms < interval_ms) return; // not enough time
if (tx_busy) return;
start_ms += interval_ms;
tx_busy = 1;
#ifdef CFG_EXAMPLE_VIDEO_READONLY
#if defined(CFG_EXAMPLE_VIDEO_DISABLE_MJPEG)