diff options
author | Andreas Huber <andih@google.com> | 2010-08-30 16:23:15 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-08-30 16:23:15 -0700 |
commit | 29c03c6e7d3eb0196bfec9eac50f0bdeddeca513 (patch) | |
tree | 80218c32aea393d1b67a06ba4ba471bd9879cdaf /media/libstagefright | |
parent | e82235ae7049badf6758ffef3c13080b135986f4 (diff) | |
download | frameworks_base-29c03c6e7d3eb0196bfec9eac50f0bdeddeca513.zip frameworks_base-29c03c6e7d3eb0196bfec9eac50f0bdeddeca513.tar.gz frameworks_base-29c03c6e7d3eb0196bfec9eac50f0bdeddeca513.tar.bz2 |
Make sure we only reallocate buffers on a genuine port definition change.
Change-Id: I434be98700e5d9333f75a3a9a8c78f1acc7e7247
related-to-bug: 2953523
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/OMXCodec.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index 9d45c80..f68c08a 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -1811,7 +1811,9 @@ void OMXCodec::onEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2) { case OMX_EventPortSettingsChanged: { - onPortSettingsChanged(data1); + if (data2 == 0 || data2 == OMX_IndexParamPortDefinition) { + onPortSettingsChanged(data1); + } break; } |