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

Unified Diff: media/base/media_track.cc

Issue 2226443002: Support multiple media tracks in MSE / ChunkDemuxer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed integer overflow Created 4 years, 3 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/video_codecs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_track.cc
diff --git a/media/base/media_track.cc b/media/base/media_track.cc
index 59791e10160fce82fea9137cb8d631f8e2fe21e9..2b600346f7072653cacea9d8014a8124793323e8 100644
--- a/media/base/media_track.cc
+++ b/media/base/media_track.cc
@@ -19,4 +19,17 @@ MediaTrack::MediaTrack(Type type,
MediaTrack::~MediaTrack() {}
+const char* TrackTypeToStr(MediaTrack::Type type) {
+ switch (type) {
+ case MediaTrack::Audio:
+ return "audio";
+ case MediaTrack::Text:
+ return "text";
+ case MediaTrack::Video:
+ return "video";
+ }
+ NOTREACHED();
+ return "INVALID";
+}
+
} // namespace media
« no previous file with comments | « media/base/media_track.h ('k') | media/base/video_codecs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698