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

Unified Diff: third_party/WebKit/Source/core/html/track/TrackBase.cpp

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
Index: third_party/WebKit/Source/core/html/track/TrackBase.cpp
diff --git a/third_party/WebKit/Source/core/html/track/TrackBase.cpp b/third_party/WebKit/Source/core/html/track/TrackBase.cpp
index 5f685aaca8f1574a56c5402822399338ee70d045..64bb0837be4128d639dac6e28bc2e386513ead1a 100644
--- a/third_party/WebKit/Source/core/html/track/TrackBase.cpp
+++ b/third_party/WebKit/Source/core/html/track/TrackBase.cpp
@@ -34,15 +34,8 @@
namespace blink {
-static WebMediaPlayer::TrackId nextTrackId()
-{
- static WebMediaPlayer::TrackId next = 0;
- return ++next;
-}
-
TrackBase::TrackBase(WebMediaPlayer::TrackType type, const AtomicString& kind, const AtomicString& label, const AtomicString& language, const String& id)
- : m_trackId(nextTrackId())
- , m_type(type)
+ : m_type(type)
, m_kind(kind)
, m_label(label)
, m_language(language)
« no previous file with comments | « third_party/WebKit/Source/core/html/track/TrackBase.h ('k') | third_party/WebKit/Source/core/html/track/TrackListBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698