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

Unified Diff: media/formats/webm/webm_cluster_parser.h

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 | « media/filters/source_buffer_stream.cc ('k') | media/formats/webm/webm_cluster_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/webm/webm_cluster_parser.h
diff --git a/media/formats/webm/webm_cluster_parser.h b/media/formats/webm/webm_cluster_parser.h
index d1b34a8ec6181f1a46e8604d2bc1873268e1b221..e2d5b98e6de71b1d2eb06802bd1b733f6cf223e1 100644
--- a/media/formats/webm/webm_cluster_parser.h
+++ b/media/formats/webm/webm_cluster_parser.h
@@ -113,7 +113,7 @@ class MEDIA_EXPORT WebMClusterParser : public WebMParserClient {
// Counts the number of estimated durations used in this track. Used to
// prevent log spam for MEDIA_LOG()s about estimated duration.
- int num_duration_estimates_;
+ int num_duration_estimates_ = 0;
int track_num_;
bool is_video_;
@@ -269,7 +269,7 @@ class MEDIA_EXPORT WebMClusterParser : public WebMParserClient {
// Tracks the number of MEDIA_LOGs made in process of reading encoded
// duration. Useful to prevent log spam.
- int num_duration_errors_;
+ int num_duration_errors_ = 0;
double timecode_multiplier_; // Multiplier used to convert timecodes into
// microseconds.
@@ -280,23 +280,23 @@ class MEDIA_EXPORT WebMClusterParser : public WebMParserClient {
WebMListParser parser_;
- int64 last_block_timecode_;
+ int64 last_block_timecode_ = -1;
scoped_ptr<uint8_t[]> block_data_;
- int block_data_size_;
- int64 block_duration_;
- int64 block_add_id_;
+ int block_data_size_ = -1;
+ int64 block_duration_ = -1;
+ int64 block_add_id_ = -1;
scoped_ptr<uint8_t[]> block_additional_data_;
// Must be 0 if |block_additional_data_| is null. Must be > 0 if
// |block_additional_data_| is NOT null.
- int block_additional_data_size_;
+ int block_additional_data_size_ = 0;
- int64 discard_padding_;
- bool discard_padding_set_;
+ int64 discard_padding_ = -1;
+ bool discard_padding_set_ = false;
- int64 cluster_timecode_;
+ int64 cluster_timecode_ = -1;
base::TimeDelta cluster_start_time_;
- bool cluster_ended_;
+ bool cluster_ended_ = false;
Track audio_;
Track video_;
« no previous file with comments | « media/filters/source_buffer_stream.cc ('k') | media/formats/webm/webm_cluster_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698