Skip to content

Commit 37ba32b

Browse files
committed
Fix bug. Resolves #1464.
1 parent 27aabc7 commit 37ba32b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/RTP/RTPSession.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,14 +1272,14 @@ public virtual SetDescriptionResultEnum SetRemoteDescription(SdpType sdpType, SD
12721272
}
12731273
else if (currentMediaStream.MediaType == SDPMediaTypesEnum.text)
12741274
{
1275-
if (capabilities?.Count == 0 || (currentMediaStream.LocalTrack == null && currentMediaStream.LocalTrack != null && currentMediaStream.LocalTrack.Capabilities?.Count == 0))
1275+
if (capabilities?.Count == 0 || (currentMediaStream.LocalTrack != null && currentMediaStream.LocalTrack.Capabilities?.Count == 0))
12761276
{
12771277
return SetDescriptionResultEnum.TextIncompatible;
12781278
}
12791279
}
12801280
else if (currentMediaStream.MediaType == SDPMediaTypesEnum.video)
12811281
{
1282-
if (capabilities?.Count == 0 || (currentMediaStream.LocalTrack == null && currentMediaStream.LocalTrack != null && currentMediaStream.LocalTrack.Capabilities?.Count == 0))
1282+
if (capabilities?.Count == 0 || (currentMediaStream.LocalTrack != null && currentMediaStream.LocalTrack.Capabilities?.Count == 0))
12831283
{
12841284
return SetDescriptionResultEnum.VideoIncompatible;
12851285
}

0 commit comments

Comments
 (0)