commit | 4d0815d694e5a2edb3ce48427de50f55d0f84c0b | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Thu Aug 29 14:40:55 2013 -0700 |
committer | Glenn Kasten <gkasten@google.com> | Tue Sep 03 15:12:31 2013 -0700 |
tree | 446da0a3f51945bcfc0de108c169eab70a652674 | |
parent | 732845c7e8d294bb1aaa4cd9687da62b51f1f6e6 [diff] |
Implement MonoPipe::getTimestamp using SingleStateQueue observer Change-Id: I7b1928b087f1e676c7b291df6cefa7707301662c
diff --git a/media/libnbaio/MonoPipe.cpp b/media/libnbaio/MonoPipe.cpp index b55be83..de0ad28 100644 --- a/media/libnbaio/MonoPipe.cpp +++ b/media/libnbaio/MonoPipe.cpp
@@ -315,6 +315,9 @@ status_t MonoPipe::getTimestamp(AudioTimestamp& timestamp) { + if (mTimestampObserver.poll(timestamp)) { + return OK; + } return INVALID_OPERATION; }