From 954e38a6b91ce950b24655bdc647fb149df5be65 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 4 Feb 2021 10:10:34 -0500 Subject: [PATCH] v4l2bufferpool: use FLOW_LAST_BUFFER This uses the GST_V4L2_FLOW_LAST_BUFFER alias instead of GST_FLOW_CUSTOM_SUCCESS to make the code more readable. Part-of: --- sys/v4l2/gstv4l2bufferpool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 52c99163e2..21efd35728 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -1134,7 +1134,7 @@ select_error: return GST_FLOW_ERROR; } no_buffers: - return GST_FLOW_CUSTOM_SUCCESS; + return GST_V4L2_FLOW_LAST_BUFFER; } static GstFlowReturn @@ -1236,7 +1236,7 @@ gst_v4l2_buffer_pool_dqbuf (GstV4l2BufferPool * pool, GstBuffer ** buffer, if ((res = gst_v4l2_buffer_pool_poll (pool, wait)) < GST_FLOW_OK) goto poll_failed; - if (res == GST_FLOW_CUSTOM_SUCCESS) { + if (res == GST_V4L2_FLOW_LAST_BUFFER) { GST_LOG_OBJECT (pool, "nothing to dequeue"); goto done; }