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

Unified Diff: media/base/video_frame.cc

Issue 2330543002: Change unique_ptr::reset() for std::move (Closed)
Patch Set: Change unique_ptr::reset() for std::move Created 4 years, 3 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 | « media/base/byte_queue.cc ('k') | media/formats/webm/cluster_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 2fe4f29e9055893490fd8134142918d4bd7b3e6b..091ce4be7af6d75e94ee1f2b064ab27f6f3045b7 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -779,7 +779,7 @@ bool VideoFrame::DuplicateFileDescriptors(const std::vector<int>& in_fds) {
}
}
for (size_t i = 0; i < kMaxPlanes; ++i)
- dmabuf_fds_[i].reset(temp_dmabuf_fds[i].release());
+ dmabuf_fds_[i] = std::move(temp_dmabuf_fds[i]);
return true;
}
« no previous file with comments | « media/base/byte_queue.cc ('k') | media/formats/webm/cluster_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698