diff options
author | Andreas Huber <andih@google.com> | 2010-12-06 10:36:06 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-12-06 12:45:50 -0800 |
commit | ae9d5072534de65d9ea41def2e1b4258a1731ca4 (patch) | |
tree | 830c5d190218294b95df9b1e84dc395d8779c7a6 /cmds | |
parent | b5590846c035a28399818451201aaf1256913ec3 (diff) | |
download | frameworks_base-ae9d5072534de65d9ea41def2e1b4258a1731ca4.zip frameworks_base-ae9d5072534de65d9ea41def2e1b4258a1731ca4.tar.gz frameworks_base-ae9d5072534de65d9ea41def2e1b4258a1731ca4.tar.bz2 |
API Support for both synchronous and queued commands, optionally associated metadata.
Change-Id: Idb90d64cb638942210c5822b3cba2f05b087d601
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/stream.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/stagefright/stream.cpp b/cmds/stagefright/stream.cpp index f2b5638..a3d7a6e 100644 --- a/cmds/stagefright/stream.cpp +++ b/cmds/stagefright/stream.cpp @@ -3,6 +3,7 @@ #include <media/IStreamSource.h> #include <media/mediaplayer.h> #include <media/stagefright/foundation/ADebug.h> +#include <media/stagefright/foundation/AMessage.h> #include <binder/IServiceManager.h> #include <media/IMediaPlayerService.h> @@ -56,7 +57,7 @@ void MyStreamSource::onBufferAvailable(size_t index) { ssize_t n = read(mFd, mem->pointer(), mem->size()); if (n <= 0) { - mListener->queueCommand(IStreamListener::EOS); + mListener->issueCommand(IStreamListener::EOS, false /* synchronous */); } else { mListener->queueBuffer(index, n); } |