diff options
author | Aman Gupta <aman@tmm1.net> | 2019-08-24 22:02:30 +0300 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2019-09-11 20:31:18 +0300 |
commit | fac834b2ae0b2802f1eca9fd804fbdf6cd34ac33 (patch) | |
tree | 4a14161ef323849fab1a6d1e6b3da3507826a9b0 /libavcodec/v4l2_context.h | |
parent | 3475758a3791dc89c6e7c406f8b032f035cd7d1e (diff) |
avcodec/v4l2_context: expose timeout for dequeue_frame
Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavcodec/v4l2_context.h')
-rw-r--r-- | libavcodec/v4l2_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/v4l2_context.h b/libavcodec/v4l2_context.h index ee08f3de41..1026f5b8e1 100644 --- a/libavcodec/v4l2_context.h +++ b/libavcodec/v4l2_context.h @@ -154,9 +154,10 @@ int ff_v4l2_context_dequeue_packet(V4L2Context* ctx, AVPacket* pkt); * The frame must be non NULL. * @param[in] ctx The V4L2Context to dequeue from. * @param[inout] f The AVFrame to dequeue to. + * @param[in] timeout The timeout for dequeue (-1 to block, 0 to return immediately, or milliseconds) * @return 0 in case of success, AVERROR(EAGAIN) if no buffer was ready, another negative error in case of error. */ -int ff_v4l2_context_dequeue_frame(V4L2Context* ctx, AVFrame* f); +int ff_v4l2_context_dequeue_frame(V4L2Context* ctx, AVFrame* f, int timeout); /** * Enqueues a buffer to a V4L2Context from an AVPacket |