Message ID | 20190713172351.25452-9-laurent.pinchart@ideasonboard.com |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
Hi Laurent, Thanks for your work. On 2019-07-13 20:23:43 +0300, Laurent Pinchart wrote: > Access the number of allocated buffer for the streams through the stream > configuration instead of the stream's buffers pool. > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> > --- > src/libcamera/pipeline/ipu3/ipu3.cpp | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp > index ffc066a15ae9..488e89f25c5e 100644 > --- a/src/libcamera/pipeline/ipu3/ipu3.cpp > +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp > @@ -635,7 +635,7 @@ int PipelineHandlerIPU3::allocateBuffers(Camera *camera, > * of buffers as the active ones. > */ > if (!outStream->active_) { > - bufferCount = vfStream->bufferPool().count(); > + bufferCount = vfStream->configuration().bufferCount; > outStream->device_->pool->createBuffers(bufferCount); > ret = imgu->exportBuffers(outStream->device_, > outStream->device_->pool); > @@ -644,7 +644,7 @@ int PipelineHandlerIPU3::allocateBuffers(Camera *camera, > } > > if (!vfStream->active_) { > - bufferCount = outStream->bufferPool().count(); > + bufferCount = outStream->configuration().bufferCount; > vfStream->device_->pool->createBuffers(bufferCount); > ret = imgu->exportBuffers(vfStream->device_, > vfStream->device_->pool); > -- > Regards, > > Laurent Pinchart > > _______________________________________________ > libcamera-devel mailing list > libcamera-devel@lists.libcamera.org > https://lists.libcamera.org/listinfo/libcamera-devel
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp index ffc066a15ae9..488e89f25c5e 100644 --- a/src/libcamera/pipeline/ipu3/ipu3.cpp +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp @@ -635,7 +635,7 @@ int PipelineHandlerIPU3::allocateBuffers(Camera *camera, * of buffers as the active ones. */ if (!outStream->active_) { - bufferCount = vfStream->bufferPool().count(); + bufferCount = vfStream->configuration().bufferCount; outStream->device_->pool->createBuffers(bufferCount); ret = imgu->exportBuffers(outStream->device_, outStream->device_->pool); @@ -644,7 +644,7 @@ int PipelineHandlerIPU3::allocateBuffers(Camera *camera, } if (!vfStream->active_) { - bufferCount = outStream->bufferPool().count(); + bufferCount = outStream->configuration().bufferCount; vfStream->device_->pool->createBuffers(bufferCount); ret = imgu->exportBuffers(vfStream->device_, vfStream->device_->pool);
Access the number of allocated buffer for the streams through the stream configuration instead of the stream's buffers pool. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- src/libcamera/pipeline/ipu3/ipu3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)