Audio: aml_amaudioutils module reports [1/1]
PD#TV-61218
Problem:
The coverity detected problems with the AML Amaudioutils module
Solution:
fix the code based on the report
Verify:
yocto lge.
Change-Id: Iafa9e6db7f95e32b6e09d593bbb10ea004904218
Signed-off-by: zhaopeng.yan <zhaopeng.yan@amlogic.com>
diff --git a/src/IpcBuffer/IpcBuffer.cpp b/src/IpcBuffer/IpcBuffer.cpp
index 311f086..d879cf2 100644
--- a/src/IpcBuffer/IpcBuffer.cpp
+++ b/src/IpcBuffer/IpcBuffer.cpp
@@ -18,6 +18,8 @@
, capacity_(capacity)
, name_(std::string(name))
, wr_position_(0)
+ , blocking_(false)
+ , wr_time_(0)
{
managed_shared_memory *segment = audio_server_shmem::getInstance();
void *shptr = segment->allocate(capacity);