From 19b7eafdd1b34e5985768623a0fa467ec7ed5b86 Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Fri, 21 Sep 2018 09:43:02 -0400 Subject: [PATCH] appears to be constraint mistake --- org/webrtc/wrapper/Media.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org/webrtc/wrapper/Media.cc b/org/webrtc/wrapper/Media.cc index 4b85b17a9f..b415d39f6a 100644 --- a/org/webrtc/wrapper/Media.cc +++ b/org/webrtc/wrapper/Media.cc @@ -514,7 +514,7 @@ namespace Org { constraints.SetMandatory(webrtc::MediaConstraintsInterface::kMinHeight, globals::gPreferredVideoCaptureFormat.height); constraints.SetMandatory(webrtc::MediaConstraintsInterface::kMaxWidth, globals::gPreferredVideoCaptureFormat.width); constraints.SetMandatory(webrtc::MediaConstraintsInterface::kMaxHeight, globals::gPreferredVideoCaptureFormat.height); - constraints.SetMandatoryMaxFrameRate(cricket::VideoFormat::IntervalToFps(globals::gPreferredVideoCaptureFormat.height)); + constraints.SetMandatoryMaxFrameRate(cricket::VideoFormat::IntervalToFps(globals::gPreferredVideoCaptureFormat.interval)); RTC_LOG(LS_INFO) << "Creating video track."; rtc::scoped_refptr video_track(