Bug 1234571: unregister encoded-frame callback when releasing codec databases r=pkerr

This commit is contained in:
Randell Jesup 2015-12-31 16:36:39 -05:00
parent 803af84dc5
commit e527489ee4

View File

@ -85,6 +85,7 @@ int32_t VCMGenericEncoder::Release()
rtc::CritScope lock(&rates_lock_);
bit_rate_ = 0;
frame_rate_ = 0;
encoder_->RegisterEncodeCompleteCallback(nullptr);
vcm_encoded_frame_callback_ = nullptr;
}