зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1708813: Remember remote side's payload type on recv tracks when we were the offerer. r=mjf
Depends on D114039 Differential Revision: https://phabricator.services.mozilla.com/D114040
This commit is contained in:
Родитель
98d9c7db9a
Коммит
bc0f8757c0
|
@ -409,8 +409,9 @@ std::vector<UniquePtr<JsepCodecDescription>> JsepTrack::NegotiateCodecs(
|
||||||
// First codec of ours that matches. See if we can negotiate it.
|
// First codec of ours that matches. See if we can negotiate it.
|
||||||
UniquePtr<JsepCodecDescription> clone(codec->Clone());
|
UniquePtr<JsepCodecDescription> clone(codec->Clone());
|
||||||
if (clone->Negotiate(fmt, remote, isOffer)) {
|
if (clone->Negotiate(fmt, remote, isOffer)) {
|
||||||
// If negotiation changed the payload type, remember that for later
|
// If negotiation succeeded, remember the payload type the other side
|
||||||
codec->mDefaultPt = clone->mDefaultPt;
|
// used for reoffers.
|
||||||
|
codec->mDefaultPt = fmt;
|
||||||
|
|
||||||
// Remember whether we negotiated rtx and the associated pt for later.
|
// Remember whether we negotiated rtx and the associated pt for later.
|
||||||
if (codec->mType == SdpMediaSection::kVideo) {
|
if (codec->mType == SdpMediaSection::kVideo) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче