summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-12-06 10:36:06 -0800
committerAndreas Huber <andih@google.com>2010-12-06 12:45:50 -0800
commit14acc736e336cbd6026df781d4f411e908831815 (patch)
treeed12a1452bb0e9a7bc9d9a3b4deb00458e90c852 /cmds
parenta44153c1a57202fb538659eb50706e60454d6273 (diff)
downloadframeworks_av-14acc736e336cbd6026df781d4f411e908831815.zip
frameworks_av-14acc736e336cbd6026df781d4f411e908831815.tar.gz
frameworks_av-14acc736e336cbd6026df781d4f411e908831815.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.cpp3
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);
}