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

Unified Diff: media/base/media_track.h

Issue 1861963008: Use StreamParser::TrackId instead of string for MediaTrack::byteStreamTrackId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include <algorithm> into stream_parser_buffer.cc 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 | « no previous file | media/base/media_track.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_track.h
diff --git a/media/base/media_track.h b/media/base/media_track.h
index a5cb6d3d81817b1d77f57f221a4cb7a05c8739ca..3cd41d736ffa05cd702b6402e5ad91a57b300ada 100644
--- a/media/base/media_track.h
+++ b/media/base/media_track.h
@@ -8,6 +8,7 @@
#include <string>
#include "media/base/media_export.h"
+#include "media/base/stream_parser.h"
namespace media {
@@ -15,7 +16,7 @@ class MEDIA_EXPORT MediaTrack {
public:
enum Type { Text, Audio, Video };
MediaTrack(Type type,
- const std::string& id,
+ StreamParser::TrackId bytestream_track_id,
const std::string& kind,
const std::string& label,
const std::string& lang);
@@ -23,14 +24,16 @@ class MEDIA_EXPORT MediaTrack {
Type type() const { return type_; }
- const std::string& id() const { return id_; }
+ StreamParser::TrackId bytestream_track_id() const {
+ return bytestream_track_id_;
+ }
const std::string& kind() const { return kind_; }
const std::string& label() const { return label_; }
const std::string& language() const { return language_; }
private:
Type type_;
- std::string id_;
+ StreamParser::TrackId bytestream_track_id_;
std::string kind_;
std::string label_;
std::string language_;
« no previous file with comments | « no previous file | media/base/media_track.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698