summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixingShen <[email protected]>2024-01-26 09:09:18 +0800
committerYixingShen <[email protected]>2024-01-26 09:09:18 +0800
commit4c9f462423338a812378924233eac55ce0e96fb8 (patch)
treeaa0f47f6a7711692fa11d618881a28b5d3628751
parent19130440ccd0db8649b2f4e6c7ccb2ee2eaeefac (diff)
add "set tx_busy 1" into video_capture's video_tas for "if (tx_busy) return"
-rw-r--r--examples/device/video_capture/src/main.c2
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 711d4710a..759c06057 100644
--- a/examples/device/video_capture/src/main.c
+++ b/examples/device/video_capture/src/main.c
@@ -185,6 +185,7 @@ void video_task(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)
@@ -203,6 +204,7 @@ void video_task(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)