From 14acc736e336cbd6026df781d4f411e908831815 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 6 Dec 2010 10:36:06 -0800 Subject: API Support for both synchronous and queued commands, optionally associated metadata. Change-Id: Idb90d64cb638942210c5822b3cba2f05b087d601 --- cmds/stagefright/stream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmds/stagefright/stream.cpp') 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 #include #include +#include #include #include @@ -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); } -- cgit v1.1