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

Unified Diff: media/audio/audio_streams_tracker.cc

Issue 2578983003: Add AudioStreamRegistry. Move stream counting logic (Closed)
Patch Set: Remove active audio tracking from ARH to see what tests break. Created 3 years, 11 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 | « media/audio/audio_streams_tracker.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_streams_tracker.cc
diff --git a/media/audio/audio_streams_tracker.cc b/media/audio/audio_streams_tracker.cc
index 5363796df737f3667923479b192ddc709730c1a5..9f98aa0ffcf0b2b7376613fa0e3c63bc096a2b19 100644
--- a/media/audio/audio_streams_tracker.cc
+++ b/media/audio/audio_streams_tracker.cc
@@ -25,10 +25,10 @@ void AudioStreamsTracker::IncreaseStreamCount() {
max_stream_count_ = current_stream_count_;
}
-void AudioStreamsTracker::DecreaseStreamCount(size_t count) {
+void AudioStreamsTracker::DecreaseStreamCount() {
DCHECK(thread_checker_.CalledOnValidThread());
- DCHECK_GE(current_stream_count_, count);
- current_stream_count_ -= count;
+ DCHECK_GE(current_stream_count_, static_cast<size_t>(1));
+ --current_stream_count_;
}
void AudioStreamsTracker::ResetMaxStreamCount() {
« no previous file with comments | « media/audio/audio_streams_tracker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698