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

Side by Side Diff: media/base/media_tracks.h

Issue 1833053005: Remove MediaTracks::getFirstAudio/VideoConfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control
Patch Set: Avoid crashes in tests Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | media/base/media_tracks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef MEDIA_BASE_MEDIA_TRACKS_H_ 5 #ifndef MEDIA_BASE_MEDIA_TRACKS_H_
6 #define MEDIA_BASE_MEDIA_TRACKS_H_ 6 #define MEDIA_BASE_MEDIA_TRACKS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 const std::string& label, 41 const std::string& label,
42 const std::string& language); 42 const std::string& language);
43 43
44 const MediaTracksCollection& tracks() const { return tracks_; } 44 const MediaTracksCollection& tracks() const { return tracks_; }
45 45
46 const AudioDecoderConfig& getAudioConfig( 46 const AudioDecoderConfig& getAudioConfig(
47 StreamParser::TrackId bytestream_track_id) const; 47 StreamParser::TrackId bytestream_track_id) const;
48 const VideoDecoderConfig& getVideoConfig( 48 const VideoDecoderConfig& getVideoConfig(
49 StreamParser::TrackId bytestream_track_id) const; 49 StreamParser::TrackId bytestream_track_id) const;
50 50
51 // TODO(servolk): These are temporary helpers useful until all code paths are
52 // converted to properly handle multiple media tracks.
53 const AudioDecoderConfig& getFirstAudioConfig() const;
54 const VideoDecoderConfig& getFirstVideoConfig() const;
55
56 private: 51 private:
57 MediaTracksCollection tracks_; 52 MediaTracksCollection tracks_;
58 std::map<StreamParser::TrackId, AudioDecoderConfig> audio_configs_; 53 std::map<StreamParser::TrackId, AudioDecoderConfig> audio_configs_;
59 std::map<StreamParser::TrackId, VideoDecoderConfig> video_configs_; 54 std::map<StreamParser::TrackId, VideoDecoderConfig> video_configs_;
60 55
61 DISALLOW_COPY_AND_ASSIGN(MediaTracks); 56 DISALLOW_COPY_AND_ASSIGN(MediaTracks);
62 }; 57 };
63 58
64 } // namespace media 59 } // namespace media
65 60
66 #endif // MEDIA_BASE_MEDIA_TRACKS_H_ 61 #endif // MEDIA_BASE_MEDIA_TRACKS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/media_tracks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698