summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-11-12 18:37:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-11-12 18:37:46 +0000
commit22990fe1ee3531e84dbadb7ff9ffd68d5bbe9060 (patch)
tree859fae228d07884d2e2d2b7a6f2338848c46130b /media
parent184dfe4ea5e2ba33951bed2b1366007aee0ce3da (diff)
parent892e1b9ab055075ba9036fb7dd6404e9e0f2677a (diff)
downloadframeworks_av-22990fe1ee3531e84dbadb7ff9ffd68d5bbe9060.zip
frameworks_av-22990fe1ee3531e84dbadb7ff9ffd68d5bbe9060.tar.gz
frameworks_av-22990fe1ee3531e84dbadb7ff9ffd68d5bbe9060.tar.bz2
Merge "Back to the old way of making sure that no more buffers are submitted" into klp-dev
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/omx/GraphicBufferSource.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/media/libstagefright/omx/GraphicBufferSource.cpp b/media/libstagefright/omx/GraphicBufferSource.cpp
index a7c5317..b8970ad 100644
--- a/media/libstagefright/omx/GraphicBufferSource.cpp
+++ b/media/libstagefright/omx/GraphicBufferSource.cpp
@@ -156,7 +156,7 @@ void GraphicBufferSource::omxIdle() {
if (mExecuting) {
// We are only interested in the transition from executing->idle,
// not loaded->idle.
- mEndOfStream = mEndOfStreamSent = true;
+ mExecuting = false;
}
}
@@ -206,7 +206,9 @@ void GraphicBufferSource::addCodecBuffer(OMX_BUFFERHEADERTYPE* header) {
void GraphicBufferSource::codecBufferEmptied(OMX_BUFFERHEADERTYPE* header) {
Mutex::Autolock autoLock(mMutex);
- CHECK(mExecuting); // could this happen if app stop()s early?
+ if (!mExecuting) {
+ return;
+ }
int cbi = findMatchingCodecBuffer_l(header);
if (cbi < 0) {