OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/webm/webm_tracks_parser.h" | 5 #include "media/webm/webm_tracks_parser.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "media/base/buffers.h" | 9 #include "media/base/buffers.h" |
10 #include "media/webm/webm_constants.h" | 10 #include "media/webm/webm_constants.h" |
11 #include "media/webm/webm_content_encodings.h" | 11 #include "media/webm/webm_content_encodings.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 static TextKind CodecIdToTextKind(const std::string& codec_id) { | 15 static TextKind CodecIdToTextKind(const std::string& codec_id) { |
16 if (codec_id == kWebMCodecSubtitles) | 16 if (codec_id == kWebMCodecSubtitles) |
17 return kTextSubtitles; | 17 return kTextSubtitles; |
18 | 18 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 269 |
270 if (id == kWebMIdLanguage) { | 270 if (id == kWebMIdLanguage) { |
271 track_language_ = str; | 271 track_language_ = str; |
272 return true; | 272 return true; |
273 } | 273 } |
274 | 274 |
275 return true; | 275 return true; |
276 } | 276 } |
277 | 277 |
278 } // namespace media | 278 } // namespace media |
OLD | NEW |