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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2969093002: Make rendering of MediaStreams reflect changes to its set of tracks. (Closed)
Patch Set: Created 3 years, 5 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/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 989a95832f849c1e1e2651401e4fadf91f907abd..3859e280f849936e99edab48d430f4c51b6f1aa1 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -780,6 +780,9 @@ void HTMLMediaElement::SetSrc(const AtomicString& url) {
void HTMLMediaElement::SetSrcObject(MediaStreamDescriptor* src_object) {
BLINK_MEDIA_LOG << "setSrcObject(" << (void*)this << ")";
+ if (src_object_ == src_object)
foolip 2017/07/05 08:49:44 https://html.spec.whatwg.org/multipage/media.html#
Guido Urdaneta 2017/07/05 13:05:02 Reverted the change and added a test to make sure
foolip 2017/07/05 13:13:52 Great!
+ return;
+
src_object_ = src_object;
InvokeLoadAlgorithm();
}
« content/test/data/media/getusermedia.html ('K') | « content/test/data/media/getusermedia.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698