mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtpsession: Add missing lock around sess->ssrcs iteration
https://bugzilla.gnome.org/show_bug.cgi?id=795139
This commit is contained in:
parent
0a2b55ac3c
commit
29f26e8768
1 changed files with 5 additions and 1 deletions
|
@ -3973,11 +3973,15 @@ rtp_session_are_all_sources_bye (RTPSession * sess)
|
|||
GHashTableIter iter;
|
||||
RTPSource *src;
|
||||
|
||||
RTP_SESSION_LOCK (sess);
|
||||
g_hash_table_iter_init (&iter, sess->ssrcs[sess->mask_idx]);
|
||||
while (g_hash_table_iter_next (&iter, NULL, (gpointer *) & src)) {
|
||||
if (src->internal && !src->sent_bye)
|
||||
if (src->internal && !src->sent_bye) {
|
||||
RTP_SESSION_UNLOCK (sess);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
RTP_SESSION_UNLOCK (sess);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue