From 6aae75728a68bf8e59f75e3a87bc8aefb2ed3907 Mon Sep 17 00:00:00 2001 From: kwiberg Date: Wed, 2 Sep 2015 05:04:59 -0700 Subject: [PATCH] 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} --- webrtc/modules/audio_coding/main/acm2/codec_owner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/audio_coding/main/acm2/codec_owner.cc b/webrtc/modules/audio_coding/main/acm2/codec_owner.cc index ed23e10b56..2f7228bf71 100644 --- a/webrtc/modules/audio_coding/main/acm2/codec_owner.cc +++ b/webrtc/modules/audio_coding/main/acm2/codec_owner.cc @@ -127,7 +127,7 @@ rtc::scoped_ptr 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(); } }