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

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

Issue 1826583003: MSE: Record counts of detected MSE audio, video and text tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another attempt to fix that link failure. MEDIA_EXPORT should do it! 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 | « media/formats/webm/webm_stream_parser_unittest.cc ('k') | 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 7867de72abe5a81ef4ff1457710fd2071a04d3a2..1fd3441a325f71c46ddee81d613e6d255235870d 100644
--- a/media/formats/webm/webm_tracks_parser.h
+++ b/media/formats/webm/webm_tracks_parser.h
@@ -78,6 +78,12 @@ class MEDIA_EXPORT WebMTracksParser : public WebMParserClient {
return text_tracks_;
}
+ int detected_audio_track_count() const { return detected_audio_track_count_; }
+
+ int detected_video_track_count() const { return detected_video_track_count_; }
+
+ int detected_text_track_count() const { return detected_text_track_count_; }
+
// Note: Calling media_tracks() method passes the ownership of the MediaTracks
// object from WebMTracksParser to the caller (which is typically
// WebMStreamParser object). So this method must be called only once, after
@@ -128,6 +134,9 @@ class MEDIA_EXPORT WebMTracksParser : public WebMParserClient {
WebMVideoClient video_client_;
VideoDecoderConfig video_decoder_config_;
+ int detected_audio_track_count_;
+ int detected_video_track_count_;
+ int detected_text_track_count_;
scoped_ptr<MediaTracks> media_tracks_;
DISALLOW_COPY_AND_ASSIGN(WebMTracksParser);
« no previous file with comments | « media/formats/webm/webm_stream_parser_unittest.cc ('k') | media/formats/webm/webm_tracks_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698