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

Unified Diff: content/renderer/media/user_media_client_impl.cc

Issue 1721273002: MediaStream audio object graph untangling and clean-ups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests broken by recent MSAudioTrack::Stop() reworking. Created 4 years, 10 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: content/renderer/media/user_media_client_impl.cc
diff --git a/content/renderer/media/user_media_client_impl.cc b/content/renderer/media/user_media_client_impl.cc
index db0fb2e12a08c71a74a6892befdc856062754915..c75ba80294579f157339f0472d13eb5ab1fc88c2 100644
--- a/content/renderer/media/user_media_client_impl.cc
+++ b/content/renderer/media/user_media_client_impl.cc
@@ -1063,7 +1063,7 @@ void UserMediaClientImpl::UserMediaRequestInfo::StartAudioTrack(
const blink::WebMediaConstraints& constraints) {
DCHECK(track.source().getType() == blink::WebMediaStreamSource::TypeAudio);
MediaStreamAudioSource* native_source =
- static_cast<MediaStreamAudioSource*>(track.source().getExtraData());
+ MediaStreamAudioSource::From(track.source());
DCHECK(native_source);
sources_.push_back(track.source());

Powered by Google App Engine
This is Rietveld 408576698