Skip to content

Commit

Permalink
Merge pull request #138 from Sean-Der/main
Browse files Browse the repository at this point in the history
Use media name and not mid to find audio/video
  • Loading branch information
sepfy authored Sep 22, 2024
2 parents 3a6af62 + 13d228b commit eb1e3bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/peer_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ void peer_connection_set_remote_description(PeerConnection* pc, const char* sdp_
is_update = 1;
}

if (strstr(buf, "a=mid:video")) {
if (strstr(buf, "m=video")) {
ssrc = &pc->remote_vssrc;
} else if (strstr(buf, "a=mid:audio")) {
} else if (strstr(buf, "m=audio")) {
ssrc = &pc->remote_assrc;
}

Expand Down

0 comments on commit eb1e3bf

Please sign in to comment.