Commit a3f75a17 authored by Wim Taymans's avatar Wim Taymans
Browse files

session: fix bandwidth calculation

We iterate over all sources and the internal one is also in the
hashtable so avoid adding it twice.
parent 9eaef9d3
......@@ -2464,7 +2464,7 @@ calculate_rtcp_interval (RTPSession * sess, gboolean deterministic,
bandwidth = sess->bandwidth;
else {
/* If it is <= 0, then try to estimate the actual bandwidth */
bandwidth = sess->source->bitrate;
bandwidth = 0;
g_hash_table_foreach (sess->ssrcs[sess->mask_idx],
(GHFunc) add_bitrates, &bandwidth);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment