diff options
author | Lajos Molnar <lajos@google.com> | 2015-06-10 14:18:12 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2015-06-10 14:42:02 -0700 |
commit | 984a54322f7c70bc75e862d91bdd975814872aff (patch) | |
tree | edcbac98c9b3f0197b588f109fd7b331567afd77 /media/libstagefright/omx | |
parent | 4599da7f4ca67a323aa64d84c1b79e3ce6ab9f41 (diff) | |
download | frameworks_av-984a54322f7c70bc75e862d91bdd975814872aff.zip frameworks_av-984a54322f7c70bc75e862d91bdd975814872aff.tar.gz frameworks_av-984a54322f7c70bc75e862d91bdd975814872aff.tar.bz2 |
stagefright: fix issues with OMX message passing
- added destructor for MessageList so messages are freed
- check if notify has been initialized
- do not call onMessages if there are no messages
Bug: 21659665
Change-Id: Idb4eaa63dc2f8be8b282be79e6234f83a7669481
Diffstat (limited to 'media/libstagefright/omx')
-rw-r--r-- | media/libstagefright/omx/OMXNodeInstance.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/omx/OMXNodeInstance.cpp b/media/libstagefright/omx/OMXNodeInstance.cpp index 692667f..6ee1a77 100644 --- a/media/libstagefright/omx/OMXNodeInstance.cpp +++ b/media/libstagefright/omx/OMXNodeInstance.cpp @@ -1423,7 +1423,9 @@ void OMXNodeInstance::onMessages(std::list<omx_message> &messages) { } } - mObserver->onMessages(messages); + if (!messages.empty()) { + mObserver->onMessages(messages); + } } void OMXNodeInstance::onObserverDied(OMXMaster *master) { |