Let AudioCodingModule::SendCodec return Maybe<CodecInst>
And deal with the consequences thereof... Review URL: https://codereview.webrtc.org/1406123011 Cr-Commit-Position: refs/heads/master@{#10497}
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_CODEC_MANAGER_H_
|
||||
|
||||
#include "webrtc/base/constructormagic.h"
|
||||
#include "webrtc/base/maybe.h"
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include "webrtc/base/thread_checker.h"
|
||||
#include "webrtc/modules/audio_coding/main/acm2/codec_owner.h"
|
||||
@ -34,7 +35,7 @@ class CodecManager final {
|
||||
|
||||
void RegisterEncoder(AudioEncoder* external_speech_encoder);
|
||||
|
||||
int GetCodecInst(CodecInst* current_codec) const;
|
||||
rtc::Maybe<CodecInst> GetCodecInst() const;
|
||||
|
||||
bool SetCopyRed(bool enable);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user