diff --git a/talk/media/webrtc/webrtcvideoengine.cc b/talk/media/webrtc/webrtcvideoengine.cc index 63889ebe4..b88ecf11c 100644 --- a/talk/media/webrtc/webrtcvideoengine.cc +++ b/talk/media/webrtc/webrtcvideoengine.cc @@ -64,6 +64,21 @@ #include "webrtc/experiments.h" #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h" +namespace { + +template +bool Changed(cricket::Settable proposed, + cricket::Settable original) { + return proposed.IsSet() && proposed != original; +} + +template +bool Changed(cricket::Settable proposed, + cricket::Settable original, + T* value) { + return proposed.Get(value) && proposed != original; +} +} // namespace namespace cricket {