On FATAL, log which unsupported encoder the caller wanted us to create
Hopefully, this will make it easier to figure out what's wrong the next time this happens. BUG=526478 Review URL: https://codereview.webrtc.org/1313073008 Cr-Commit-Position: refs/heads/master@{#9844}
This commit is contained in:
@ -127,7 +127,7 @@ rtc::scoped_ptr<AudioEncoderMutable> CreateSpeechEncoder(
|
||||
} else if (IsG722(speech_inst)) {
|
||||
return rtc_make_scoped_ptr(new AudioEncoderMutableG722(speech_inst));
|
||||
} else {
|
||||
FATAL();
|
||||
FATAL() << "Could not create encoder of type " << speech_inst.plname;
|
||||
return rtc::scoped_ptr<AudioEncoderMutable>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user