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

Unified Diff: media/base/media_tracks.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/media_tracks.h ('k') | media/formats/common/stream_parser_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_tracks.cc
diff --git a/media/base/media_tracks.cc b/media/base/media_tracks.cc
index 9cfbfbe0bd9fcddc30d0c9ee57d71b717004c3a8..8b4b502a5e9b7be35564b17f28f4f4b362a07305 100644
--- a/media/base/media_tracks.cc
+++ b/media/base/media_tracks.cc
@@ -65,24 +65,4 @@ const VideoDecoderConfig& MediaTracks::getVideoConfig(
return invalidConfig;
}
-const AudioDecoderConfig& MediaTracks::getFirstAudioConfig() const {
- for (const auto& track : tracks()) {
- if (track->type() == MediaTrack::Audio) {
- return getAudioConfig(track->bytestream_track_id());
- }
- }
- static AudioDecoderConfig invalidConfig;
- return invalidConfig;
-}
-
-const VideoDecoderConfig& MediaTracks::getFirstVideoConfig() const {
- for (const auto& track : tracks()) {
- if (track->type() == MediaTrack::Video) {
- return getVideoConfig(track->bytestream_track_id());
- }
- }
- static VideoDecoderConfig invalidConfig;
- return invalidConfig;
-}
-
} // namespace media
« no previous file with comments | « media/base/media_tracks.h ('k') | media/formats/common/stream_parser_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698