commit | ad6d52d38917069e3d8e68cec1625855b9d96200 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Mon Jul 18 13:42:03 2016 -0700 |
committer | Andy Hung <hunga@google.com> | Wed Jul 20 22:44:20 2016 +0000 |
tree | 7a5000195073bc8c7a42fc55113297d8015c2ad2 | |
parent | 510b50593bd332cfd50cedce54fed260f6c8d5e4 [diff] [blame] |
Flush FastCapture PipeReader when starting after stop Discards stale frames. Bug: 30199985 Change-Id: Ie93a3784bf052aba6989d2ff1be92b1980b0c207
diff --git a/include/media/nbaio/PipeReader.h b/include/media/nbaio/PipeReader.h index 7c733ad..00c2b3c 100644 --- a/include/media/nbaio/PipeReader.h +++ b/include/media/nbaio/PipeReader.h
@@ -47,6 +47,8 @@ virtual ssize_t read(void *buffer, size_t count); + virtual ssize_t flush(); + // NBAIO_Source end #if 0 // until necessary