sim/video: fix hang when user temporarily blocks

host_set_fmt should not return error when EBUSY

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee 2022-12-20 12:22:08 +08:00 committed by Xiang Xiao
parent a897fe3005
commit 9f537d7a3f

View File

@ -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;
}