diff options
author | Sahil Sachdeva <sahils@google.com> | 2009-08-28 11:23:24 -0700 |
---|---|---|
committer | Sahil Sachdeva <sahils@google.com> | 2009-08-28 11:23:24 -0700 |
commit | 9bc3c298d6df2a3ac6288af963aa48964554503a (patch) | |
tree | 955b02d3e60aa403808c9d9dd9dbd5d8137bc542 /engines | |
parent | 66e03cf19dff95ae30f364f82922775e855c7ee0 (diff) | |
download | opencore-9bc3c298d6df2a3ac6288af963aa48964554503a.tar.gz |
Fix Author Engine Compiler Warning
Diffstat (limited to 'engines')
-rw-r--r-- | engines/author/src/pvauthorengine.cpp | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/engines/author/src/pvauthorengine.cpp b/engines/author/src/pvauthorengine.cpp index 8b709c83b..9303a4e4d 100644 --- a/engines/author/src/pvauthorengine.cpp +++ b/engines/author/src/pvauthorengine.cpp @@ -2928,23 +2928,26 @@ PVMFStatus PVAuthorEngine::SendAuthoringClockToDataSources(bool aReset) PvmiKvp* retKvp = NULL; // for return value int32 err; - for (uint index = 0; index < iDataSourceNodes.size(); index++) - { - //use data source node capconfig to pass the clock pointer to - //source nodes. if reset is true, we send NULL. author does this - //to notify that clock pointer should no longer be used - if (iDataSourceNodes[index]->iNodeCapConfigIF != NULL) - { - PvmiCapabilityAndConfig* dataSrcCapConfig = - OSCL_STATIC_CAST(PvmiCapabilityAndConfig*, iDataSourceNodes[index]->iNodeCapConfigIF); - OSCL_TRY(err, dataSrcCapConfig->setParametersSync(NULL, &kvp, 1, retKvp);); - if (err != OsclErrNone) - { - /* ignore the error */ - PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_ERR, - (0, "PVAuthorEngine::SendAuthoringClockToDataSources() SetParameterSync for AuthorClock failed")); - } - } + OSCL_TRY (err, + for (uint index = 0; index < iDataSourceNodes.size(); index++) + { + //use data source node capconfig to pass the clock pointer to + //source nodes. if reset is true, we send NULL. author does this + //to notify that clock pointer should no longer be used + if (iDataSourceNodes[index]->iNodeCapConfigIF != NULL) + { + PvmiCapabilityAndConfig* dataSrcCapConfig = + OSCL_STATIC_CAST(PvmiCapabilityAndConfig*, iDataSourceNodes[index]->iNodeCapConfigIF); + dataSrcCapConfig->setParametersSync(NULL, &kvp, 1, retKvp); + } + } + ); + + if (err != OsclErrNone) + { + /* ignore the error */ + PVLOGGER_LOGMSG(PVLOGMSG_INST_HLDBG, iLogger, PVLOGMSG_ERR, + (0, "PVAuthorEngine::SendAuthoringClockToDataSources() SetParameterSync for AuthorClock failed")); } alloc.deallocate((OsclAny*)(kvp.key)); |