Bug 1306777: stop sending RTP after switching to a=inactive. r=bwc

MozReview-Commit-ID: EEetiD4Tm4I

--HG--
extra : rebase_source : b9454944f5070b232c03a605e4dd651264c34b26
This commit is contained in:
Nils Ohlmeier [:drno] 2016-09-30 16:13:07 -07:00
parent 3466fe0ae3
commit 7a1894eae5

View File

@ -477,6 +477,20 @@ MediaPipelineFactory::CreateOrUpdateMediaPipeline(
return NS_ERROR_FAILURE;
}
}
} else {
if (receiving) {
auto error = conduit->StopReceiving();
if (error) {
MOZ_MTLOG(ML_ERROR, "StopReceiving failed: " << error);
return NS_ERROR_FAILURE;
}
} else {
auto error = conduit->StopTransmitting();
if (error) {
MOZ_MTLOG(ML_ERROR, "StopTransmitting failed: " << error);
return NS_ERROR_FAILURE;
}
}
}
RefPtr<MediaPipeline> pipeline =