mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
rtpsession: Take the lock already when reading the other stats, not just for the hash table
https://bugzilla.gnome.org/show_bug.cgi?id=766025
This commit is contained in:
parent
3320f4f0de
commit
fe34f46f32
1 changed files with 1 additions and 1 deletions
|
@ -744,12 +744,12 @@ rtp_session_create_stats (RTPSession * sess)
|
||||||
GValue source_stats_v = G_VALUE_INIT;
|
GValue source_stats_v = G_VALUE_INIT;
|
||||||
guint size;
|
guint size;
|
||||||
|
|
||||||
|
RTP_SESSION_LOCK (sess);
|
||||||
s = gst_structure_new ("application/x-rtp-session-stats",
|
s = gst_structure_new ("application/x-rtp-session-stats",
|
||||||
"rtx-drop-count", G_TYPE_UINT, sess->stats.nacks_dropped,
|
"rtx-drop-count", G_TYPE_UINT, sess->stats.nacks_dropped,
|
||||||
"sent-nack-count", G_TYPE_UINT, sess->stats.nacks_sent,
|
"sent-nack-count", G_TYPE_UINT, sess->stats.nacks_sent,
|
||||||
"recv-nack-count", G_TYPE_UINT, sess->stats.nacks_received, NULL);
|
"recv-nack-count", G_TYPE_UINT, sess->stats.nacks_received, NULL);
|
||||||
|
|
||||||
RTP_SESSION_LOCK (sess);
|
|
||||||
size = g_hash_table_size (sess->ssrcs[sess->mask_idx]);
|
size = g_hash_table_size (sess->ssrcs[sess->mask_idx]);
|
||||||
source_stats = g_value_array_new (size);
|
source_stats = g_value_array_new (size);
|
||||||
g_hash_table_foreach (sess->ssrcs[sess->mask_idx],
|
g_hash_table_foreach (sess->ssrcs[sess->mask_idx],
|
||||||
|
|
Loading…
Reference in a new issue