Merge "Fixing safteynet logging bug from ag/862848 - DO NOT MERGE" into mnc-dev am: 49c04280f2 am: 97f1356544
am: 89896480e0
* commit '89896480e0d69d5f564b208da1d4845ef4cbb730':
Fixing safteynet logging bug from ag/862848 - DO NOT MERGE
diff --git a/media/libstagefright/omx/OMX.cpp b/media/libstagefright/omx/OMX.cpp
index 7f357c9..2c5b8df 100644
--- a/media/libstagefright/omx/OMX.cpp
+++ b/media/libstagefright/omx/OMX.cpp
@@ -344,7 +344,13 @@
status_t OMX::storeMetaDataInBuffers(
node_id node, OMX_U32 port_index, OMX_BOOL enable, MetadataBufferType *type) {
- return findInstance(node)->storeMetaDataInBuffers(port_index, enable, type);
+ OMXNodeInstance *instance = findInstance(node);
+
+ if (instance == NULL) {
+ android_errorWriteLog(0x534e4554, "26324358");
+ }
+
+ return instance->storeMetaDataInBuffers(port_index, enable, type);
}
status_t OMX::prepareForAdaptivePlayback(