Adding all necessary MapSetting and MapError functions. This doesn't alter the existing functionality but just "formalizes" the mapping layer for the underlying components.

Review URL: http://webrtc-codereview.appspot.com/44002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@111 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
ajm@google.com
2011-06-21 12:58:27 +00:00
parent 33bb406f22
commit 909118894b
17 changed files with 151 additions and 356 deletions

View File

@@ -86,13 +86,9 @@ int ProcessingComponent::Initialize() {
int err = InitializeHandle(handles_[i]);
if (err != apm_->kNoError) {
return err;
return GetHandleError(handles_[i]);
}
}
//int err = InitializeHandles(handles_);
//if (err != apm_->kNoError) {
// return TranslateError(err);
//}
initialized_ = true;
return Configure();
@@ -107,9 +103,7 @@ int ProcessingComponent::Configure() {
for (int i = 0; i < num_handles_; i++) {
int err = ConfigureHandle(handles_[i]);
if (err != apm_->kNoError) {
// Try to get the current valid state.
//GetConfiguration();
return err;
return GetHandleError(handles_[i]);
}
}