]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v4l2_context.c
avcodec/v4l2_context: return EAGAIN to signal full buffers
[ffmpeg] / libavcodec / v4l2_context.c
index 29b144ed73ee3a899f6ca498b99b877a38486614..ff1ea8e57b08b3220f108dde6ba26b89050ad262 100644 (file)
@@ -599,7 +599,7 @@ int ff_v4l2_context_enqueue_frame(V4L2Context* ctx, const AVFrame* frame)
 
     avbuf = v4l2_getfree_v4l2buf(ctx);
     if (!avbuf)
-        return AVERROR(ENOMEM);
+        return AVERROR(EAGAIN);
 
     ret = ff_v4l2_buffer_avframe_to_buf(frame, avbuf);
     if (ret)