Skip to content

Commit 215efc0

Browse files
honglin lengMaureenHelm
honglin leng
authored andcommitted
include: fix the function pointer error
fix incorrect function pointer judgment in video_stream_stop Signed-off-by: honglin leng <[email protected]>
1 parent 9a297ae commit 215efc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/drivers/video.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static inline int video_stream_stop(const struct device *dev)
423423
(const struct video_driver_api *)dev->api;
424424
int ret;
425425

426-
if (api->stream_stop) {
426+
if (api->stream_stop == NULL) {
427427
return -ENOSYS;
428428
}
429429

0 commit comments

Comments
 (0)