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

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

Issue 2753593002: 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 1c0e4149034c44a0421b2934085f039416027727..364c3d4be7cdbdc7d4f6a2873ea5b43084a20c30 100644
--- a/content/renderer/media_recorder/video_track_recorder.cc
+++ b/content/renderer/media_recorder/video_track_recorder.cc
@@ -692,10 +692,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