Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 579325 Details for
Bug 784145
Review Request: libomxil-bellagio - OpenMAX Integration Layer
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix comile errors with -Werror
omxil-0.9.3_compile_fixes.patch (text/plain), 6.92 KB, created by
Niels de Vos
on 2012-04-22 17:49:12 UTC
(
hide
)
Description:
Patch to fix comile errors with -Werror
Filename:
MIME Type:
Creator:
Niels de Vos
Created:
2012-04-22 17:49:12 UTC
Size:
6.92 KB
patch
obsolete
>From 0c76792f4b1dbbff4e8cc044054ea5371de35017 Mon Sep 17 00:00:00 2001 >From: Niels de Vos <devos@fedoraproject.org> >Date: Sun, 22 Apr 2012 14:44:34 +0200 >Subject: [PATCH 1/2] Fix compile warning for > OMX_INDEXTYPE/OMX_INDEXVENDORTYPE in one switch > >Use the default: label in the switch for OMX_INDEXTYPE to add checks for >values in OMX_INDEXVENDORTYPE. > >Fixes error: >omx_base_component.c: In function 'omx_base_component_GetParameter': >omx_base_component.c:991:3: error: case value '2130706435' not in enumerated type 'OMX_INDEXTYPE' [-Werror=switch] >omx_base_component.c:918:3: error: case value '2130706436' not in enumerated type 'OMX_INDEXTYPE' [-Werror=switch] > >Issue: http://sourceforge.net/tracker/?func=detail&aid=3477869&group_id=160680&atid=816817 >Signed-off-by: Niels de Vos <devos@fedoraproject.org> >--- > src/base/omx_base_component.c | 54 ++++++++++++++++++++++------------------- > 1 files changed, 29 insertions(+), 25 deletions(-) > >diff --git a/src/base/omx_base_component.c b/src/base/omx_base_component.c >index 4156c37..558c1f0 100644 >--- a/src/base/omx_base_component.c >+++ b/src/base/omx_base_component.c >@@ -915,14 +915,6 @@ OSCL_EXPORT_REF OSCL_EXPORT_REF OMX_ERRORTYPE omx_base_component_GetParameter( > return OMX_ErrorBadParameter; > } > switch(nParamIndex) { >- case OMX_IndexParameterThreadsID: >- if ((err = checkHeader(ComponentParameterStructure, sizeof(OMX_PARAM_BELLAGIOTHREADS_ID))) != OMX_ErrorNone) { >- break; >- } >- threadID = (OMX_PARAM_BELLAGIOTHREADS_ID *)ComponentParameterStructure; >- threadID->nThreadBufferMngtID = omx_base_component_Private->bellagioThreads->nThreadBufferMngtID; >- threadID->nThreadMessageID = omx_base_component_Private->bellagioThreads->nThreadMessageID; >- break; > case OMX_IndexParamAudioInit: > case OMX_IndexParamVideoInit: > case OMX_IndexParamImageInit: >@@ -988,28 +980,40 @@ OSCL_EXPORT_REF OSCL_EXPORT_REF OMX_ERRORTYPE omx_base_component_GetParameter( > } > } > break; >- case OMX_IndexVendorCompPropTunnelFlags: >- pPropTunnelSetup = (OMX_VENDOR_PROP_TUNNELSETUPTYPE*)ComponentParameterStructure; >+ default: >+ /* additional switch statement for extended OMX_INDEXTYPE */ >+ switch((OMX_INDEXVENDORTYPE) nParamIndex) { >+ case OMX_IndexParameterThreadsID: >+ if ((err = checkHeader(ComponentParameterStructure, sizeof(OMX_PARAM_BELLAGIOTHREADS_ID))) != OMX_ErrorNone) { >+ break; >+ } >+ threadID = (OMX_PARAM_BELLAGIOTHREADS_ID *)ComponentParameterStructure; >+ threadID->nThreadBufferMngtID = omx_base_component_Private->bellagioThreads->nThreadBufferMngtID; >+ threadID->nThreadMessageID = omx_base_component_Private->bellagioThreads->nThreadMessageID; >+ break; >+ case OMX_IndexVendorCompPropTunnelFlags: >+ pPropTunnelSetup = (OMX_VENDOR_PROP_TUNNELSETUPTYPE*)ComponentParameterStructure; > >- if (pPropTunnelSetup->nPortIndex >= (omx_base_component_Private->sPortTypesParam[OMX_PortDomainAudio].nPorts + >- omx_base_component_Private->sPortTypesParam[OMX_PortDomainVideo].nPorts + >- omx_base_component_Private->sPortTypesParam[OMX_PortDomainImage].nPorts + >- omx_base_component_Private->sPortTypesParam[OMX_PortDomainOther].nPorts)) { >+ if (pPropTunnelSetup->nPortIndex >= (omx_base_component_Private->sPortTypesParam[OMX_PortDomainAudio].nPorts + >+ omx_base_component_Private->sPortTypesParam[OMX_PortDomainVideo].nPorts + >+ omx_base_component_Private->sPortTypesParam[OMX_PortDomainImage].nPorts + >+ omx_base_component_Private->sPortTypesParam[OMX_PortDomainOther].nPorts)) { > >- DEBUG(DEB_LEV_ERR,"In %s OMX_IndexVendorCompPropTunnelFlags nPortIndex=%d Line=%d \n", >- __func__,(int)pPropTunnelSetup->nPortIndex,__LINE__); >+ DEBUG(DEB_LEV_ERR,"In %s OMX_IndexVendorCompPropTunnelFlags nPortIndex=%d Line=%d \n", >+ __func__,(int)pPropTunnelSetup->nPortIndex,__LINE__); > >- return OMX_ErrorBadPortIndex; >- } >+ return OMX_ErrorBadPortIndex; >+ } > >- pPort = omx_base_component_Private->ports[pPropTunnelSetup->nPortIndex]; >+ pPort = omx_base_component_Private->ports[pPropTunnelSetup->nPortIndex]; > >- pPropTunnelSetup->nTunnelSetup.nTunnelFlags = pPort->nTunnelFlags; >- pPropTunnelSetup->nTunnelSetup.eSupplier = pPort->eBufferSupplier; >- break; >- default: >- err = OMX_ErrorUnsupportedIndex; >- break; >+ pPropTunnelSetup->nTunnelSetup.nTunnelFlags = pPort->nTunnelFlags; >+ pPropTunnelSetup->nTunnelSetup.eSupplier = pPort->eBufferSupplier; >+ break; >+ default: >+ err = OMX_ErrorUnsupportedIndex; >+ break; >+ } > } > DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s for component %p\n", __func__, hComponent); > return err; >-- >1.7.7.5 > >From 22e914137153ce1f319cd55dc09984cab57a20c4 Mon Sep 17 00:00:00 2001 >From: Niels de Vos <devos@fedoraproject.org> >Date: Sun, 22 Apr 2012 14:51:48 +0200 >Subject: [PATCH 2/2] Remove unused 'err' in buildComponentsList() >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The err variable is only set fwrite(), but never checked or used otherwise. >There is no need to keep this variable. > >Fixes the following build error: >omxregister.c: In function âbuildComponentsListâ: >omxregister.c:175:7: error: variable âerrâ set but not used [-Werror=unused-but-set-variable] > >Issue: http://sourceforge.net/tracker/?func=detail&aid=3477869&group_id=160680&atid=816817 >Signed-off-by: Niels de Vos <devos@fedoraproject.org> >--- > src/omxregister.c | 7 +++---- > 1 files changed, 3 insertions(+), 4 deletions(-) > >diff --git a/src/omxregister.c b/src/omxregister.c >index b593f3e..9cdccde 100644 >--- a/src/omxregister.c >+++ b/src/omxregister.c >@@ -172,7 +172,6 @@ static int buildComponentsList(FILE* omxregistryfp, char *componentspath, int ve > int index; > char* currentpath = componentspath; > char* actual; >- int err; > nameList *allNames = NULL; > nameList *currentName = NULL; > nameList *tempName = NULL; >@@ -247,8 +246,8 @@ static int buildComponentsList(FILE* omxregistryfp, char *componentspath, int ve > stComponents[i]->multiResourceLevel = NULL; > } > fptr(stComponents); >- err = fwrite(lib_absolute_path, 1, strlen(lib_absolute_path), omxregistryfp); >- err = fwrite("\n", 1, 1, omxregistryfp); >+ fwrite(lib_absolute_path, 1, strlen(lib_absolute_path), omxregistryfp); >+ fwrite("\n", 1, 1, omxregistryfp); > > > for (i = 0; i<num_of_comp; i++) { >@@ -323,7 +322,7 @@ static int buildComponentsList(FILE* omxregistryfp, char *componentspath, int ve > } > qualityString[0] = '\0'; > strcat(buffer, "\n"); >- err = fwrite(buffer, 1, strlen(buffer), omxregistryfp); >+ fwrite(buffer, 1, strlen(buffer), omxregistryfp); > ncomponents++; > } > for (i = 0; i < num_of_comp; i++) { >-- >1.7.7.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 784145
: 579325 |
600451