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:
kwiberg
2015-09-02 05:04:59 -07:00
committed by Commit bot
parent ed4224fbda
commit 6aae75728a

View File

@ -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>();
}
}