Index: webrtc/api/videocapturertracksource.cc |
diff --git a/webrtc/api/videocapturertracksource.cc b/webrtc/api/videocapturertracksource.cc |
index e292c7a065ce2dcb828d101df67a0188be5e7f3e..dda4d1cc74dc226899d3405a46930d134b14d164 100644 |
--- a/webrtc/api/videocapturertracksource.cc |
+++ b/webrtc/api/videocapturertracksource.cc |
@@ -362,6 +362,15 @@ void VideoCapturerTrackSource::Initialize( |
// Initialize hasn't succeeded until a successful state change has occurred. |
} |
+bool VideoCapturerTrackSource::GetInfo(VideoSourceInfo* info) { |
+ cricket::VideoFormat last_captured_frame_format; |
+ video_capturer_->GetStats(&last_captured_frame_format); |
+ info->input_width = last_captured_frame_format.width; |
+ info->input_height = last_captured_frame_format.height; |
+ |
+ return true; |
+} |
+ |
void VideoCapturerTrackSource::Stop() { |
if (!started_) { |
return; |