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

Unified Diff: content/renderer/media_recorder/video_track_recorder.cc

Issue 2753513008: Merge 58: Avoid calling VEA::Destroy() in VideoTrackRecorder (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media_recorder/video_track_recorder.cc
diff --git a/content/renderer/media_recorder/video_track_recorder.cc b/content/renderer/media_recorder/video_track_recorder.cc
index d699e7eff785d3f063dbc5ec95bf41a6ee7b60e6..81245344ca211a02f51c319dfc3726d1eee81666 100644
--- a/content/renderer/media_recorder/video_track_recorder.cc
+++ b/content/renderer/media_recorder/video_track_recorder.cc
@@ -652,10 +652,8 @@ void VEAEncoder::EncodeOnEncodingTaskRunner(
DVLOG(3) << __func__;
DCHECK(encoding_task_runner_->BelongsToCurrentThread());
- if (input_size_ != frame->visible_rect().size() && video_encoder_) {
- video_encoder_->Destroy();
+ if (input_size_ != frame->visible_rect().size() && video_encoder_)
video_encoder_.reset();
- }
if (!video_encoder_)
ConfigureEncoderOnEncodingTaskRunner(frame->visible_rect().size());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698