From: Nicolas Dufresne Date: Thu, 4 Feb 2021 15:10:34 +0000 (-0500) Subject: v4l2bufferpool: use FLOW_LAST_BUFFER X-Git-Tag: 1.19.3~509^2~286 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=954e38a6b91ce950b24655bdc647fb149df5be65;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 52c9916..21efd35 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; }