Properly remove the bitrate observer when ViEEncoder is destructed.
BUG=1090 Review URL: https://webrtc-codereview.appspot.com/969013 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3196 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
662651ac95
commit
bf41508807
@ -210,6 +210,9 @@ ViEEncoder::~ViEEncoder() {
|
||||
WEBRTC_TRACE(webrtc::kTraceMemory, webrtc::kTraceVideo,
|
||||
ViEId(engine_id_, channel_id_),
|
||||
"ViEEncoder Destructor 0x%p, engine_id: %d", this, engine_id_);
|
||||
if (bitrate_controller_) {
|
||||
bitrate_controller_->RemoveBitrateObserver(bitrate_observer_.get());
|
||||
}
|
||||
module_process_thread_.DeRegisterModule(&vcm_);
|
||||
module_process_thread_.DeRegisterModule(&vpm_);
|
||||
module_process_thread_.DeRegisterModule(default_rtp_rtcp_.get());
|
||||
|
Loading…
x
Reference in New Issue
Block a user