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

Unified Diff: third_party/WebKit/Source/modules/mediasource/MediaSource.cpp

Issue 2532233003: [Video] Add dummy video/audio tracks inactive to select them later. (Closed)
Patch Set: Created 4 years, 1 month 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/modules/mediasource/MediaSource.cpp
diff --git a/third_party/WebKit/Source/modules/mediasource/MediaSource.cpp b/third_party/WebKit/Source/modules/mediasource/MediaSource.cpp
index 108107378589bed357e21521d6eaf12f1bd19c9e..cae47b4b4dc19f629bd5e45f70802dda9d5dc37f 100644
--- a/third_party/WebKit/Source/modules/mediasource/MediaSource.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/MediaSource.cpp
@@ -465,7 +465,8 @@ TimeRanges* MediaSource::seekable() const {
}
void MediaSource::onTrackChanged(TrackBase* track) {
- DCHECK(RuntimeEnabledFeatures::audioVideoTracksEnabled());
+ DCHECK(RuntimeEnabledFeatures::audioVideoTracksEnabled() ||
+ RuntimeEnabledFeatures::backgroundVideoTrackOptimizationEnabled());
SourceBuffer* sourceBuffer =
SourceBufferTrackBaseSupplement::sourceBuffer(*track);
if (!sourceBuffer)

Powered by Google App Engine
This is Rietveld 408576698