Chromium Code Reviews

Unified Diff: media/webm/webm_tracks_parser.cc

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix compile errors 11/21 #6 Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « media/webm/webm_tracks_parser.h ('k') | media/webm/webm_tracks_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/webm/webm_tracks_parser.cc
diff --git a/media/webm/webm_tracks_parser.cc b/media/webm/webm_tracks_parser.cc
index aa28d6feef958d1c5b073c5a1a2a393b1338f5f3..47fade3511cbad36b9913a7088423302413011f8 100644
--- a/media/webm/webm_tracks_parser.cc
+++ b/media/webm/webm_tracks_parser.cc
@@ -192,10 +192,9 @@ bool WebMTracksParser::OnListEnd(int id) {
MEDIA_LOG(log_cb_) << "Ignoring text track " << track_num_;
ignored_tracks_.insert(track_num_);
} else {
- TextTrackInfo& text_track_info = text_tracks_[track_num_];
- text_track_info.kind = text_track_kind;
- text_track_info.name = track_name_;
- text_track_info.language = track_language_;
+ text_tracks_[track_num_] = TextTrackConfig(text_track_kind,
+ track_name_,
+ track_language_);
}
} else {
MEDIA_LOG(log_cb_) << "Unexpected TrackType " << track_type_;
« no previous file with comments | « media/webm/webm_tracks_parser.h ('k') | media/webm/webm_tracks_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine