summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-05-15 12:30:50 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-05-15 12:31:33 +0300
commitfe34f46f32db15b62b445e82d3c7191f682ddf8b (patch)
tree1ba2d4248da6024ef4020bf320f064ce651d818b
parent3320f4f0defae2b9626879ad61f30b1c59c14752 (diff)
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
-rw-r--r--gst/rtpmanager/rtpsession.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c
index 6e984e7f1..ae34d67c1 100644
--- a/gst/rtpmanager/rtpsession.c
+++ b/gst/rtpmanager/rtpsession.c
@@ -744,12 +744,12 @@ rtp_session_create_stats (RTPSession * sess)
GValue source_stats_v = G_VALUE_INIT;
guint size;
+ RTP_SESSION_LOCK (sess);
s = gst_structure_new ("application/x-rtp-session-stats",
"rtx-drop-count", G_TYPE_UINT, sess->stats.nacks_dropped,
"sent-nack-count", G_TYPE_UINT, sess->stats.nacks_sent,
"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]);
source_stats = g_value_array_new (size);
g_hash_table_foreach (sess->ssrcs[sess->mask_idx],