Skip to content

Commit ead1303

Browse files
prabhakarladmchehab
authored andcommitted
[media] media: videobuf2-core.h: add a helper to get status of start_streaming()
this patch adds a helper to get the status if start_streaming() was called successfully. Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Cc: Pawel Osciak <pawel@osciak.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 3b8a269 commit ead1303

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎include/media/videobuf2-core.h‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,15 @@ vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no)
590590
return 0;
591591
}
592592

593+
/**
594+
* vb2_start_streaming_called() - return streaming status of driver
595+
* @q: videobuf queue
596+
*/
597+
static inline bool vb2_start_streaming_called(struct vb2_queue *q)
598+
{
599+
return q->start_streaming_called;
600+
}
601+
593602
/*
594603
* The following functions are not part of the vb2 core API, but are simple
595604
* helper functions that you can use in your struct v4l2_file_operations,

0 commit comments

Comments
 (0)