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

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

Issue 1842503002: MSE: Cleanup WebM tracks parser initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Future-proof with conditional re-Reset() Created 4 years, 9 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/formats/webm/webm_tracks_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/webm/webm_tracks_parser.h
diff --git a/media/formats/webm/webm_tracks_parser.h b/media/formats/webm/webm_tracks_parser.h
index 6286b2303e0fa02280e246393fbf6bbc997f2c1c..7867de72abe5a81ef4ff1457710fd2071a04d3a2 100644
--- a/media/formats/webm/webm_tracks_parser.h
+++ b/media/formats/webm/webm_tracks_parser.h
@@ -88,6 +88,9 @@ class MEDIA_EXPORT WebMTracksParser : public WebMParserClient {
}
private:
+ void Reset();
+ void ResetTrackEntry();
+
// WebMParserClient implementation.
WebMParserClient* OnListStart(int id) override;
bool OnListEnd(int id) override;
@@ -96,6 +99,7 @@ class MEDIA_EXPORT WebMTracksParser : public WebMParserClient {
bool OnBinary(int id, const uint8_t* data, int size) override;
bool OnString(int id, const std::string& str) override;
+ bool reset_on_next_parse_;
int64_t track_type_;
int64_t track_num_;
std::string track_name_;
« no previous file with comments | « no previous file | media/formats/webm/webm_tracks_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698