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:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user