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

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

Issue 16196007: Enable SCTP in libjingle. (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 7 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
Index: content/renderer/media/rtc_video_capturer.cc
===================================================================
--- content/renderer/media/rtc_video_capturer.cc (revision 203404)
+++ content/renderer/media/rtc_video_capturer.cc (working copy)
@@ -37,6 +37,8 @@
cap.frame_rate = capture_format.framerate();
cap.color = media::VideoCaptureCapability::kI420;
+ SetCaptureFormat(&capture_format);
+
state_ = VIDEO_CAPTURE_STATE_STARTED;
start_time_ = base::Time::Now();
delegate_->StartCapture(cap,
@@ -55,6 +57,8 @@
DVLOG(1) << "Got a StopCapture while not started.";
return;
}
+
+ SetCaptureFormat(NULL);
state_ = VIDEO_CAPTURE_STATE_STOPPED;
delegate_->StopCapture();
SignalStateChange(this, cricket::CS_STOPPED);
« no previous file with comments | « DEPS ('k') | third_party/libjingle/README.chromium » ('j') | third_party/libjingle/libjingle.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698