summaryrefslogtreecommitdiff
path: root/libavcodec/v4l2_context.c
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2019-08-28 16:42:46 -0700
committerAman Gupta <aman@tmm1.net>2019-09-02 15:08:34 -0700
commitc95b1277332a818ab177978a248a1a7133550bcb (patch)
treed56f2ec0f09b29871242e4729ef57da27b7ba8df /libavcodec/v4l2_context.c
parentda45ad48f9935a3264e9a6d85127dcaf0eee38b3 (diff)
downloadffmpeg-c95b1277332a818ab177978a248a1a7133550bcb.tar.gz
avcodec/v4l2_context: use EAGAIN to signal when input buffers are unavailable
ENOMEM indicates an allocation failure, and there are no allocations happening here. The buffers are pre-allocated and there are simply none available at this time. Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavcodec/v4l2_context.c')
-rw-r--r--libavcodec/v4l2_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c
index c28d46d777..6924760840 100644
--- a/libavcodec/v4l2_context.c
+++ b/libavcodec/v4l2_context.c
@@ -572,7 +572,7 @@ int ff_v4l2_context_enqueue_packet(V4L2Context* ctx, const AVPacket* pkt)
avbuf = v4l2_getfree_v4l2buf(ctx);
if (!avbuf)
- return AVERROR(ENOMEM);
+ return AVERROR(EAGAIN);
ret = ff_v4l2_buffer_avpkt_to_buf(pkt, avbuf);
if (ret)