commit | 331916a279892f7af04071fcbb8c6f704d2daf62 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed May 11 04:37:05 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed May 11 04:37:05 2016 +0000 |
tree | 2cdb96bcc3aecbdf3862b82bcc1ab22c27fccc85 | |
parent | bf3058c5eb82cd58d67a1ef717e572b42fec218e [diff] | |
parent | e098bb4ea33852f3a3c61901aab6800a2d497109 [diff] |
Merge "codecs: fix MPEG2 decoder resolution change"
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp index 581a671..e2b58bb 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -1688,8 +1688,10 @@ // Make sure we don't continue to scan sources until we finish flushing. ++mScanSourcesGeneration; if (mScanSourcesPending) { - mDeferredActions.push_back( - new SimpleAction(&NuPlayer::performScanSources)); + if (!needShutdown) { + mDeferredActions.push_back( + new SimpleAction(&NuPlayer::performScanSources)); + } mScanSourcesPending = false; }
diff --git a/media/libstagefright/codecs/avcdec/SoftAVCDec.cpp b/media/libstagefright/codecs/avcdec/SoftAVCDec.cpp index afbe230..d159bb7 100644 --- a/media/libstagefright/codecs/avcdec/SoftAVCDec.cpp +++ b/media/libstagefright/codecs/avcdec/SoftAVCDec.cpp
@@ -628,6 +628,8 @@ mChangingResolution = false; resetDecoder(); resetPlugin(); + mStride = outputBufferWidth(); + setParams(mStride); continue; }
diff --git a/services/camera/libcameraservice/api1/client2/StreamingProcessor.cpp b/services/camera/libcameraservice/api1/client2/StreamingProcessor.cpp index 66d7b00..75c6f00 100644 --- a/services/camera/libcameraservice/api1/client2/StreamingProcessor.cpp +++ b/services/camera/libcameraservice/api1/client2/StreamingProcessor.cpp
@@ -401,6 +401,7 @@ currentFormat != (uint32_t)mRecordingFormat || currentDataSpace != mRecordingDataSpace) { *needsUpdate = true; + return res; } *needsUpdate = false; return res;