Bug 1208378 - Make HTMLMediaElement register its Sink. r=jib

This is a drive-by fix in that it is not directly related to what the bug is
solving. However, making HTMLMediaElement register as a sink is important,
and pairing it with the WeakPtr<Sink> patch reduces risk greatly.

MozReview-Commit-ID: 7pMDw3MG0ZB
This commit is contained in:
Andreas Pehrson
2017-11-06 18:08:26 +01:00
parent b976d10949
commit 7ed5ae20c6

View File

@@ -3158,6 +3158,8 @@ public:
MOZ_ASSERT(mCapturedTrackSource);
MOZ_ASSERT(mOwningStream);
MOZ_ASSERT(IsTrackIDExplicit(mDestinationTrackID));
mCapturedTrackSource->RegisterSink(this);
}
void Destroy() override