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

Unified Diff: webrtc/pc/currentspeakermonitor.cc

Issue 1835053002: Change default timestamp to 64 bits in all webrtc directories. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add TODO for timestamp. Created 4 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
« no previous file with comments | « webrtc/pc/currentspeakermonitor.h ('k') | webrtc/pc/srtpfilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/currentspeakermonitor.cc
diff --git a/webrtc/pc/currentspeakermonitor.cc b/webrtc/pc/currentspeakermonitor.cc
index e84aa828a1be3beb027c77271160b8bb99e0cfb0..ce0d579486a25d7d82c7a53d35270840803a2f3c 100644
--- a/webrtc/pc/currentspeakermonitor.cc
+++ b/webrtc/pc/currentspeakermonitor.cc
@@ -63,7 +63,7 @@ void CurrentSpeakerMonitor::Stop() {
}
void CurrentSpeakerMonitor::set_min_time_between_switches(
- uint32_t min_time_between_switches) {
+ int min_time_between_switches) {
min_time_between_switches_ = min_time_between_switches;
}
@@ -165,7 +165,7 @@ void CurrentSpeakerMonitor::OnAudioMonitor(
// We avoid over-switching by disabling switching for a period of time after
// a switch is done.
- uint32_t now = rtc::Time();
+ int64_t now = rtc::TimeMillis();
if (earliest_permitted_switch_time_ <= now &&
current_speaker_ssrc_ != loudest_speaker_ssrc) {
current_speaker_ssrc_ = loudest_speaker_ssrc;
« no previous file with comments | « webrtc/pc/currentspeakermonitor.h ('k') | webrtc/pc/srtpfilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698