mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
3466fe0ae3
commit
7a1894eae5
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user