Skip to content

Commit 3e952cc

Browse files
committed
drivers: video: esp32: Fix flush callback
When stopping, the framework calls driver's stop callback then driver's flush callback. Hence, driver's flush callback does not need to call stop callback again. Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
1 parent 88b108d commit 3e952cc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/video/video_esp32_dvp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,6 @@ static int video_esp32_flush(const struct device *dev, enum video_endpoint_id ep
334334
struct video_buffer *vbuf = NULL;
335335

336336
if (cancel) {
337-
if (data->is_streaming) {
338-
video_esp32_set_stream(dev, false);
339-
}
340337
if (data->active_vbuf) {
341338
k_fifo_put(&data->fifo_out, data->active_vbuf);
342339
data->active_vbuf = NULL;

0 commit comments

Comments
 (0)