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

Unified Diff: media/base/media_tracks.h

Issue 2050043002: Generate and assign media track ids in demuxers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-streamparser-trackid
Patch Set: rebase to ToT 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_track.h ('k') | media/base/media_tracks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_tracks.h
diff --git a/media/base/media_tracks.h b/media/base/media_tracks.h
index 068139899df353698d31b95b9e05edb8108c353f..2d7431bcd9efed4b4e169d8d4bcd45c722635fc4 100644
--- a/media/base/media_tracks.h
+++ b/media/base/media_tracks.h
@@ -28,18 +28,18 @@ class MEDIA_EXPORT MediaTracks {
// Adds a new audio track. The |bytestreamTrackId| must uniquely identify the
// track within the bytestream.
- void AddAudioTrack(const AudioDecoderConfig& config,
- StreamParser::TrackId bytestream_track_id,
- const std::string& kind,
- const std::string& label,
- const std::string& language);
+ MediaTrack* AddAudioTrack(const AudioDecoderConfig& config,
+ StreamParser::TrackId bytestream_track_id,
+ const std::string& kind,
+ const std::string& label,
+ const std::string& language);
// Adds a new video track. The |bytestreamTrackId| must uniquely identify the
// track within the bytestream.
- void AddVideoTrack(const VideoDecoderConfig& config,
- StreamParser::TrackId bytestream_track_id,
- const std::string& kind,
- const std::string& label,
- const std::string& language);
+ MediaTrack* AddVideoTrack(const VideoDecoderConfig& config,
+ StreamParser::TrackId bytestream_track_id,
+ const std::string& kind,
+ const std::string& label,
+ const std::string& language);
const MediaTracksCollection& tracks() const { return tracks_; }
« no previous file with comments | « media/base/media_track.h ('k') | media/base/media_tracks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698