We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b85b6 commit fd777c3Copy full SHA for fd777c3
drivers/video/video_sw_generator.c
@@ -16,6 +16,7 @@ struct video_sw_generator_data {
16
struct k_fifo fifo_in;
17
struct k_fifo fifo_out;
18
struct k_work_delayable buf_work;
19
+ struct k_work_sync work_sync;
20
int pattern;
21
bool ctrl_hflip;
22
bool ctrl_vflip;
@@ -63,7 +64,7 @@ static int video_sw_generator_stream_stop(const struct device *dev)
63
64
{
65
struct video_sw_generator_data *data = dev->data;
66
- k_work_cancel_delayable_sync(&data->buf_work);
67
+ k_work_cancel_delayable_sync(&data->buf_work, &data->work_sync);
68
69
return 0;
70
}
0 commit comments