summaryrefslogtreecommitdiff
path: root/mm-core
diff options
context:
space:
mode:
authorDaniel Mentz <danielmentz@google.com>2018-01-30 17:31:06 -0800
committerDaniel Mentz <danielmentz@google.com>2018-01-30 17:31:06 -0800
commitb296e36cc5b65f8023d3e21f9a3d2a3901c471fa (patch)
tree96fd61a2559b6eb73d2a6b13087f8cf1e833b354 /mm-core
parent2ccc65269f794bfe1a92e5696d094911fcf4525a (diff)
parent3ac255752a0af116064f6a3fe36198e5c9772730 (diff)
downloadmedia-b296e36cc5b65f8023d3e21f9a3d2a3901c471fa.tar.gz
Merge remote-tracking branch 'goog/qcom/release/LA.UM.7.3.9.08.00.00.385.096'
Change-Id: Ia701bcc33f5d9578e620b1a96bfb4f9ea8863976
Diffstat (limited to 'mm-core')
-rw-r--r--mm-core/inc/qc_omx_msg.h11
-rw-r--r--mm-core/src/common/qc_omx_core.c39
2 files changed, 8 insertions, 42 deletions
diff --git a/mm-core/inc/qc_omx_msg.h b/mm-core/inc/qc_omx_msg.h
index deb0ab79..e0c85929 100644
--- a/mm-core/inc/qc_omx_msg.h
+++ b/mm-core/inc/qc_omx_msg.h
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------------------
-Copyright (c) 2009, The Linux Foundation. All rights reserved.
+Copyright (c) 2009, 2018 The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@@ -78,9 +78,12 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define DEBUG_DETAIL printf
#endif // _ANDROID_
#else
- #define DEBUG_PRINT_ERROR
- #define DEBUG_PRINT
- #define DEBUG_DETAIL
+ #ifdef _ANDROID_
+ #include <utils/Log.h>
+ #define DEBUG_PRINT_ERROR ALOGV
+ #define DEBUG_PRINT ALOGV
+ #define DEBUG_DETAIL ALOGV
+ #endif // _ANDROID_
#endif // _ENABLE_QC_MSG_LOG_
#endif // _QC_OMX_MSG_H_
diff --git a/mm-core/src/common/qc_omx_core.c b/mm-core/src/common/qc_omx_core.c
index c7e3fadb..69b3cc23 100644
--- a/mm-core/src/common/qc_omx_core.c
+++ b/mm-core/src/common/qc_omx_core.c
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------------------
-Copyright (c) 2009, 2015, The Linux Foundation. All rights reserved.
+Copyright (c) 2009, 2015, 2018 The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@@ -289,42 +289,6 @@ static int check_lib_unload(int index)
}
return rc;
}
-/* ======================================================================
-FUNCTION
- is_cmp_already_exists
-
-DESCRIPTION
- Check if the component already exists or not. Used in the
- management of component handles.
-
-PARAMETERS
- None
-
-RETURN VALUE
- Error None.
-========================================================================== */
-static int is_cmp_already_exists(char *cmp_name)
-{
- unsigned i =0,j=0;
- int rc = -1;
- for(i=0; i< SIZE_OF_CORE; i++)
- {
- if(!strcmp(cmp_name, core[i].name))
- {
- for(j=0; j< OMX_COMP_MAX_INST; j++)
- {
- if(core[i].inst[j])
- {
- rc = i;
- DEBUG_PRINT("Component exists %d\n", rc);
- return rc;
- }
- }
- break;
- }
- }
- return rc;
-}
/* ======================================================================
FUNCTION
@@ -412,7 +376,6 @@ OMX_GetHandle(OMX_OUT OMX_HANDLETYPE* handle,
pthread_mutex_lock(&lock_core);
if(handle)
{
- struct stat sd;
*handle = NULL;
char optComponentName[OMX_MAX_STRINGNAME_SIZE];
strlcpy(optComponentName, componentName, OMX_MAX_STRINGNAME_SIZE);