diff options
author | Cho KyongHo <pullip.cho@samsung.com> | 2019-08-20 19:49:59 +0900 |
---|---|---|
committer | Cho KyongHo <pullip.cho@samsung.com> | 2020-02-20 21:34:34 -0800 |
commit | 0848d2238c38693ec3ce106b31685c9ae036fbf1 (patch) | |
tree | d7575697aeab04ec2983c0cba426599f133b257f | |
parent | 376a9251edbb8fd8ff6d1bd9055499dd36ae06b6 (diff) |
libhwjpeg: fix stop streaming before reqbufs(0)
Change-Id: I2e3d54b12441b9645112f487ff888f2bcdbff09e
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
-rw-r--r-- | libhwjpeg/LibScalerForJpeg.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhwjpeg/LibScalerForJpeg.cpp b/libhwjpeg/LibScalerForJpeg.cpp index cab9ae4..954e76f 100644 --- a/libhwjpeg/LibScalerForJpeg.cpp +++ b/libhwjpeg/LibScalerForJpeg.cpp @@ -109,6 +109,10 @@ LibScalerForJpeg::Device::~Device() bool LibScalerForJpeg::Device::requestBuffers(unsigned int buftype, unsigned int memtype, unsigned int count) { + // count==0 means this port should be reconfigured and it is successful under streaming is finished. + if (!count) + streamOff(buftype); + v4l2_requestbuffers reqbufs{}; reqbufs.type = buftype; |