From 9f537d7a3f5bd757ce392a07987fa89ec9d22551 Mon Sep 17 00:00:00 2001 From: Peter Bee Date: Tue, 20 Dec 2022 12:22:08 +0800 Subject: [PATCH] sim/video: fix hang when user temporarily blocks host_set_fmt should not return error when EBUSY Signed-off-by: Peter Bee --- arch/sim/src/sim/sim_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sim/src/sim/sim_video.c b/arch/sim/src/sim/sim_video.c index 9da591b3b6..93b5cea96b 100644 --- a/arch/sim/src/sim/sim_video.c +++ b/arch/sim/src/sim/sim_video.c @@ -229,7 +229,7 @@ static int sim_video_data_start_capture(uint8_t nr_datafmt, imgdata_fmt_to_v4l2( datafmt[IMGDATA_FMT_MAIN].pixelformat), interval->denominator, interval->numerator); - if (ret < 0) + if (ret < 0 && ret != -EBUSY) { return ret; }