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

Unified Diff: media/base/audio_splicer.cc

Issue 1278193003: In-class-initialize LIMITED_MEDIA_LOG log counters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_518069
Patch Set: (Rebase and) Nix the enum->const cleanup from this CL Created 5 years, 4 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 | « no previous file | media/filters/frame_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_splicer.cc
diff --git a/media/base/audio_splicer.cc b/media/base/audio_splicer.cc
index accff36cd30acec7a1db197ac264d52cf5ce664e..3fd6dacbf791994d00e283608c496798e7786de6 100644
--- a/media/base/audio_splicer.cc
+++ b/media/base/audio_splicer.cc
@@ -99,7 +99,7 @@ class AudioStreamSanitizer {
void AddOutputBuffer(const scoped_refptr<AudioBuffer>& buffer);
AudioTimestampHelper output_timestamp_helper_;
- bool received_end_of_stream_;
+ bool received_end_of_stream_ = false;
typedef std::deque<scoped_refptr<AudioBuffer> > BufferQueue;
BufferQueue output_buffers_;
@@ -108,7 +108,7 @@ class AudioStreamSanitizer {
// To prevent log spam, counts the number of audio gap or overlaps warned in
// logs.
- int num_warning_logs_;
+ int num_warning_logs_ = 0;
DISALLOW_ASSIGN(AudioStreamSanitizer);
};
@@ -116,11 +116,7 @@ class AudioStreamSanitizer {
AudioStreamSanitizer::AudioStreamSanitizer(
int samples_per_second,
const scoped_refptr<MediaLog>& media_log)
- : output_timestamp_helper_(samples_per_second),
- received_end_of_stream_(false),
- media_log_(media_log),
- num_warning_logs_(0) {
-}
+ : output_timestamp_helper_(samples_per_second), media_log_(media_log) {}
AudioStreamSanitizer::~AudioStreamSanitizer() {}
« no previous file with comments | « no previous file | media/filters/frame_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698