aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2014-05-23 13:42:08 +0800
committerrene <rene@FreeBSD.org>2014-05-23 13:42:08 +0800
commit876c659b0ed1303df78c47102bba3c2a12421b2f (patch)
treed20816b4e56475fb84630d73b38f11b4580081b7 /www
parent6b9cbb9ac618de2126a887eb375a96898c693e1a (diff)
downloadfreebsd-ports-gnome-876c659b0ed1303df78c47102bba3c2a12421b2f.tar.gz
freebsd-ports-gnome-876c659b0ed1303df78c47102bba3c2a12421b2f.tar.zst
freebsd-ports-gnome-876c659b0ed1303df78c47102bba3c2a12421b2f.zip
Fix build with GCC on i386
Submitted by: Lena <lena@lenakiev.ua> (independently) MFH: 2014Q2
Diffstat (limited to 'www')
-rw-r--r--www/chromium/files/patch-media__cast__rtcp__rtcp.cc11
-rw-r--r--www/chromium/files/patch-net__quic__congestion_control__rtt_stats.cc11
-rw-r--r--www/chromium/files/patch-third_party__webrtc__modules__video_coding__main__source__receiver.cc17
3 files changed, 39 insertions, 0 deletions
diff --git a/www/chromium/files/patch-media__cast__rtcp__rtcp.cc b/www/chromium/files/patch-media__cast__rtcp__rtcp.cc
new file mode 100644
index 000000000000..97c90a453b9d
--- /dev/null
+++ b/www/chromium/files/patch-media__cast__rtcp__rtcp.cc
@@ -0,0 +1,11 @@
+--- media/cast/rtcp/rtcp.cc.orig 2014-05-14 21:23:34.000000000 +0200
++++ media/cast/rtcp/rtcp.cc 2014-05-22 09:51:16.000000000 +0200
+@@ -362,7 +362,7 @@
+ int64 rtp_time_diff_ms = rtp_timestamp_diff / frequency_khz;
+
+ // Sanity check.
+- if (std::abs(rtp_time_diff_ms) > kMaxDiffSinceReceivedRtcpMs)
++ if (std::labs(rtp_time_diff_ms) > kMaxDiffSinceReceivedRtcpMs)
+ return false;
+
+ *rtp_timestamp_in_ticks = ConvertNtpToTimeTicks(last_received_ntp_seconds_,
diff --git a/www/chromium/files/patch-net__quic__congestion_control__rtt_stats.cc b/www/chromium/files/patch-net__quic__congestion_control__rtt_stats.cc
new file mode 100644
index 000000000000..d890ba29f9d7
--- /dev/null
+++ b/www/chromium/files/patch-net__quic__congestion_control__rtt_stats.cc
@@ -0,0 +1,11 @@
+--- net/quic/congestion_control/rtt_stats.cc.orig 2014-05-14 21:22:13.000000000 +0200
++++ net/quic/congestion_control/rtt_stats.cc 2014-05-21 23:32:04.000000000 +0200
+@@ -63,7 +63,7 @@
+ } else {
+ mean_deviation_ = QuicTime::Delta::FromMicroseconds(
+ kOneMinusBeta * mean_deviation_.ToMicroseconds() +
+- kBeta * std::abs(smoothed_rtt_.Subtract(rtt_sample).ToMicroseconds()));
++ kBeta * std::labs(smoothed_rtt_.Subtract(rtt_sample).ToMicroseconds()));
+ smoothed_rtt_ = smoothed_rtt_.Multiply(kOneMinusAlpha).Add(
+ rtt_sample.Multiply(kAlpha));
+ DVLOG(1) << "Cubic; smoothed_rtt(us):" << smoothed_rtt_.ToMicroseconds()
diff --git a/www/chromium/files/patch-third_party__webrtc__modules__video_coding__main__source__receiver.cc b/www/chromium/files/patch-third_party__webrtc__modules__video_coding__main__source__receiver.cc
new file mode 100644
index 000000000000..33c61da18b65
--- /dev/null
+++ b/www/chromium/files/patch-third_party__webrtc__modules__video_coding__main__source__receiver.cc
@@ -0,0 +1,17 @@
+--- third_party/webrtc/modules/video_coding/main/source/receiver.cc.orig 2014-05-14 21:24:36.000000000 +0200
++++ third_party/webrtc/modules/video_coding/main/source/receiver.cc 2014-05-21 23:46:49.000000000 +0200
+@@ -158,12 +158,12 @@
+ // Assume that render timing errors are due to changes in the video stream.
+ if (next_render_time_ms < 0) {
+ timing_error = true;
+- } else if (std::abs(next_render_time_ms - now_ms) > max_video_delay_ms_) {
++ } else if (std::labs(next_render_time_ms - now_ms) > max_video_delay_ms_) {
+ WEBRTC_TRACE(webrtc::kTraceWarning, webrtc::kTraceVideoCoding,
+ VCMId(vcm_id_, receiver_id_),
+ "This frame is out of our delay bounds, resetting jitter "
+ "buffer: %d > %d",
+- static_cast<int>(std::abs(next_render_time_ms - now_ms)),
++ static_cast<int>(std::labs(next_render_time_ms - now_ms)),
+ max_video_delay_ms_);
+ timing_error = true;
+ } else if (static_cast<int>(timing_->TargetVideoDelay()) >