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

Unified Diff: content/renderer/media/media_stream_video_source.cc

Issue 1672713002: MediaStreamVideoSource exports current video format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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 | « content/renderer/media/media_stream_video_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_video_source.cc
diff --git a/content/renderer/media/media_stream_video_source.cc b/content/renderer/media/media_stream_video_source.cc
index f5e2eb1d75d41e6211379df47e799b573c544857..9e4eeb97216ece6f93e8239d877318e57cfb19fb 100644
--- a/content/renderer/media/media_stream_video_source.cc
+++ b/content/renderer/media/media_stream_video_source.cc
@@ -401,6 +401,14 @@ base::SingleThreadTaskRunner* MediaStreamVideoSource::io_task_runner() const {
return track_adapter_->io_task_runner();
}
+const media::VideoCaptureFormat*
+ MediaStreamVideoSource::GetCurrentFormat() const {
+ DCHECK(CalledOnValidThread());
+ if (state_ == STARTING || state_ == STARTED)
+ return &current_format_;
+ return nullptr;
+}
+
void MediaStreamVideoSource::DoStopSource() {
DCHECK(CalledOnValidThread());
DVLOG(3) << "DoStopSource()";
« no previous file with comments | « content/renderer/media/media_stream_video_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698