diff options
| author | Ha Thach <[email protected]> | 2024-01-30 10:00:26 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-30 10:00:26 +0700 |
| commit | 7a92038bc4ccd668dd1f8a6f322228dfe60dd115 (patch) | |
| tree | b972c878dbb7820bb47fb601c7e317d5f81b2072 /examples/device | |
| parent | b4c0530fda3031010e4badd8e1af54eb10aa1f46 (diff) | |
| parent | 073a7a5659f06ce623e1081ac5f5566408fba670 (diff) | |
Merge pull request #2428 from YixingShen/master
update video_capture
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/video_capture/src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/device/video_capture/src/main.c b/examples/device/video_capture/src/main.c index 091eb8d0c..2a2b0961f 100644 --- a/examples/device/video_capture/src/main.c +++ b/examples/device/video_capture/src/main.c @@ -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) |
