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

Unified Diff: content/renderer/pepper/pepper_media_stream_video_track_host.cc

Issue 2807203002: Use explicit conversion to base::Optional in MSVS::GetCurrentFormatImpl implementations. (Closed)
Patch Set: Created 3 years, 8 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 | « content/renderer/media/mock_media_stream_video_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_media_stream_video_track_host.cc
diff --git a/content/renderer/pepper/pepper_media_stream_video_track_host.cc b/content/renderer/pepper/pepper_media_stream_video_track_host.cc
index 42ae7eb40b54274e0ab58a0fee56caff79bd3aa8..548b13809a00ca8e9fd042a41f11f794b5948681 100644
--- a/content/renderer/pepper/pepper_media_stream_video_track_host.cc
+++ b/content/renderer/pepper/pepper_media_stream_video_track_host.cc
@@ -447,9 +447,10 @@ class PepperMediaStreamVideoTrackHost::VideoSource final
const override {
DCHECK(!IsOldVideoConstraints());
if (host_) {
- return media::VideoCaptureFormat(
- host_->plugin_frame_size_, kDefaultOutputFrameRate,
- ToPixelFormat(host_->plugin_frame_format_));
+ return base::Optional<media::VideoCaptureFormat>(
+ media::VideoCaptureFormat(
+ host_->plugin_frame_size_, kDefaultOutputFrameRate,
+ ToPixelFormat(host_->plugin_frame_format_)));
}
return base::Optional<media::VideoCaptureFormat>();
}
« no previous file with comments | « content/renderer/media/mock_media_stream_video_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698