summaryrefslogtreecommitdiff
path: root/include/tinycompress/tinycompress.h
diff options
context:
space:
mode:
authorSairamreddy Bojja <quic_sbojja@quicinc.com>2023-03-13 12:26:57 +0530
committerSairamreddy Bojja <quic_sbojja@quicinc.com>2023-03-13 12:28:25 +0530
commit592347b1b3b9fd1c69877a29cc250c78c4b9b6fc (patch)
tree8ff84f79bb871c15761516f097bf466700255858 /include/tinycompress/tinycompress.h
parent08e9750b96a8e51918ff7896bafff606b6d3d3c9 (diff)
tinycompress: do not loop in the compress read
Return the compress read immediately when it is successful. client can recall for the remaining bytes. Also, In case of capture, move the plugin state to prepared when set params is successful. Earlier in case of playback this plug state is moved to prepare only when first write is successful. Change-Id: I9a6a365d78ede8ff04e4d99bcdaca05a71831d6c CRs-Fixed: 3424064
Diffstat (limited to 'include/tinycompress/tinycompress.h')
-rw-r--r--include/tinycompress/tinycompress.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tinycompress/tinycompress.h b/include/tinycompress/tinycompress.h
index 97b305f..83c8f9e 100644
--- a/include/tinycompress/tinycompress.h
+++ b/include/tinycompress/tinycompress.h
@@ -53,6 +53,8 @@
#ifndef __TINYCOMPRESS_H
#define __TINYCOMPRESS_H
+#include <stdbool.h>
+
#if defined(__cplusplus)
extern "C" {
#endif