Skip to content

Commit

Permalink
Reuse videoroom pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Nov 4, 2024
1 parent e52471c commit f31b4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/janus_videoroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -12963,11 +12963,11 @@ static void *janus_videoroom_handler(void *data) {
/* If this is an update/renegotiation, notify participants about this */
if(sdp_update && g_atomic_int_get(&session->started)) {
/* Notify all other participants this publisher's media has changed */
janus_mutex_lock(&participant->room->mutex);
janus_mutex_lock(&videoroom->mutex);
janus_mutex_lock(&participant->streams_mutex);
janus_videoroom_notify_about_publisher(participant, TRUE);
janus_mutex_unlock(&participant->streams_mutex);
janus_mutex_unlock(&participant->room->mutex);
janus_mutex_unlock(&videoroom->mutex);
}
/* Done */
if(res != JANUS_OK) {
Expand Down

0 comments on commit f31b4e3

Please sign in to comment.