From 6fe259939e375ed8e8bd604e93cabbf664a20de5 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Tue, 22 Nov 2022 10:54:51 +0000 Subject: video-source: add fill_buffer We are preparing to allow video sources whose data is generated in userspace. To this end, add a fill_buffer function to video_source. Reviewed-by: Daniel Scally Reviewed-by: Kieran Bingham Signed-off-by: Paul Elder Signed-off-by: Kieran Bingham --- lib/video-source.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/video-source.c') diff --git a/lib/video-source.c b/lib/video-source.c index 5520b95..17f008a 100644 --- a/lib/video-source.c +++ b/lib/video-source.c @@ -65,3 +65,9 @@ int video_source_queue_buffer(struct video_source *src, { return src->ops->queue_buffer(src, buf); } + +void video_source_fill_buffer(struct video_source *src, + struct video_buffer *buf) +{ + src->ops->fill_buffer(src, buf); +} -- cgit v1.2.3