Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc

Issue 2669093004: Remove codec thread from MediaCodecVideoEncoder. (Closed)
Patch Set: Update comment, remove unncessary scope. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc
diff --git a/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc b/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc
index ae1151162ac19376c1e6a2620b6d2b082df050f0..a4d10671ba21e9f819645ebd54682ed90e239b9d 100644
--- a/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc
+++ b/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc
@@ -149,6 +149,7 @@ int SimulcastEncoderAdapter::Release() {
while (!streaminfos_.empty()) {
VideoEncoder* encoder = streaminfos_.back().encoder;
EncodedImageCallback* callback = streaminfos_.back().callback;
+ encoder->Release();
stefan-webrtc 2017/02/21 12:29:56 This was a bug, right? We should add a unittest to
sakal 2017/02/21 12:53:50 In practice not since all the encoders had an undo
stefan-webrtc 2017/02/21 13:13:08 If it is hit by tests then I think it's good enoug
factory_->Destroy(encoder);
delete callback;
streaminfos_.pop_back();

Powered by Google App Engine
This is Rietveld 408576698