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 094cd16549
commit 1768b90533

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;
}