Print an info log instead of return an error if an external encoder is de-registered, but no corresponding internal encoder can be registered automatically.

This is not an error case if for instance an external h.264 encoder is registered, but no internal implementation exists.

R=pbos@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/13009004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6704 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2014-07-16 11:20:40 +00:00
parent 63c60ed224
commit 4070b1db53

View File

@ -322,7 +322,10 @@ int32_t ViEEncoder::DeRegisterExternalEncoder(uint8_t pl_type) {
current_send_codec.extra_options = NULL;
if (vcm_.RegisterSendCodec(&current_send_codec, number_of_cores_,
max_data_payload_length) != VCM_OK) {
return -1;
LOG(LS_INFO) << "De-registered the currently used external encoder ("
<< static_cast<int>(pl_type) << ") and therefore tried to "
<< "register the corresponding internal encoder, but none "
<< "was supported.";
}
}
return 0;