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

Unified Diff: Source/platform/mediastream/MediaStreamCenter.cpp

Issue 827673002: Add MediaStream.active attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add MediaStream.active attribute Created 5 years, 11 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: Source/platform/mediastream/MediaStreamCenter.cpp
diff --git a/Source/platform/mediastream/MediaStreamCenter.cpp b/Source/platform/mediastream/MediaStreamCenter.cpp
index d5bc111c945dc72fdefbd3b827a79a25cf179257..1479c2a9f09775189399ef26d9735dbcf7ac3bca 100644
--- a/Source/platform/mediastream/MediaStreamCenter.cpp
+++ b/Source/platform/mediastream/MediaStreamCenter.cpp
@@ -141,7 +141,7 @@ void MediaStreamCenter::stopLocalMediaStream(const WebMediaStream& webStream)
if (client)
client->streamEnded();
else
- stream->setEnded();
+ stream->setActive(false);
perkj_chrome 2015/01/13 08:24:31 Shouldn't you keep setEnded here? MediaStream.Stop
jiajia.qin 2015/01/13 08:52:45 Agree. I will leave this unchanged.
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698