summaryrefslogtreecommitdiff
path: root/mm-core/src/common/qc_omx_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm-core/src/common/qc_omx_core.c')
-rw-r--r--mm-core/src/common/qc_omx_core.c39
1 files changed, 1 insertions, 38 deletions
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);