Skip to content

Commit

Permalink
Use media name and not mid to find audio/video
Browse files Browse the repository at this point in the history
Can't depend on audio/video being a mid name
  • Loading branch information
Sean-Der committed Sep 21, 2024
1 parent 3a6af62 commit 13d228b
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 13d228b

Please sign in to comment.