Skip to content

Commit

Permalink
Fix the update of datachannels outbound stats in place of inbound sta…
Browse files Browse the repository at this point in the history
…ts when receiving DTLS packets
  • Loading branch information
atoppi committed Oct 18, 2024
1 parent 12c5487 commit 8ef4bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ice.c
Original file line number Diff line number Diff line change
Expand Up @@ -2594,8 +2594,8 @@ static void janus_ice_cb_nice_recv(NiceAgent *agent, guint stream_id, guint comp
/* If there's a datachannel medium, update the stats there too */
janus_ice_peerconnection_medium *medium = g_hash_table_lookup(pc->media_bytype, GINT_TO_POINTER(JANUS_MEDIA_DATA));
if(medium) {
medium->out_stats.info[0].packets++;
medium->out_stats.info[0].bytes += len;
medium->in_stats.info[0].packets++;
medium->in_stats.info[0].bytes += len;
}
return;
}
Expand Down

0 comments on commit 8ef4bbe

Please sign in to comment.