Bug 1301675 - Received tracks from RTCPeerConnection are stoppable. r=jib

MozReview-Commit-ID: L8ag0BEWL39

--HG--
extra : rebase_source : bcb197473f8b44aa2e01c0724f609efb74409387
This commit is contained in:
Andreas Pehrson 2016-09-16 15:18:09 +02:00
parent 75e0ffd718
commit ee5849fc81

View File

@ -174,8 +174,8 @@ public:
void Stop() override
{
// XXX Fix in later patch.
NS_ERROR("Can't stop a remote source!");
// XXX (Bug 1314270): Implement rejection logic if necessary when we have
// clarity in the spec.
}
void SetPrincipal(nsIPrincipal* aPrincipal)
@ -228,12 +228,6 @@ class RemoteSourceStreamInfo : public SourceStreamInfo {
void StartReceiving();
private:
#if !defined(MOZILLA_EXTERNAL_LINKAGE)
// MediaStreamTrackSources associated with this remote stream.
// We use them for updating their principal if that's needed.
std::vector<RefPtr<RemoteTrackSource>> mTrackSources;
#endif
// True iff SetPullEnabled(true) has been called on the DOMMediaStream. This
// happens when offer/answer concludes.
bool mReceiving;