summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-05-22 01:12:57 +0200
committerWim Taymans <wim@metal.(none)>2009-05-22 01:12:57 +0200
commitb3aeee2bf281225495b09216ec3d796e6330c9e1 (patch)
tree18305886711446d03473f992b5d10f4336b67c86 /gst
parentfb59348dbe0dfd5b6cb0596a031e5c437265e85d (diff)
downloadgst-plugins-bad-b3aeee2bf281225495b09216ec3d796e6330c9e1.tar.gz
gst-plugins-bad-b3aeee2bf281225495b09216ec3d796e6330c9e1.tar.bz2
gst-plugins-bad-b3aeee2bf281225495b09216ec3d796e6330c9e1.zip
rtpbin: use the right lock for the sessions
Use the right lock when iterating the sessions.
Diffstat (limited to 'gst')
-rw-r--r--gst/rtpmanager/gstrtpbin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c
index 11cc2dd9..9ab50888 100644
--- a/gst/rtpmanager/gstrtpbin.c
+++ b/gst/rtpmanager/gstrtpbin.c
@@ -1555,6 +1555,8 @@ gst_rtp_bin_set_sdes_string (GstRtpBin * bin, GstRTCPSDESType type,
if (type < 0 || type > 8)
return;
+ GST_RTP_BIN_LOCK (bin);
+
GST_OBJECT_LOCK (bin);
g_free (bin->sdes[type]);
bin->sdes[type] = g_strdup (data);
@@ -1563,6 +1565,8 @@ gst_rtp_bin_set_sdes_string (GstRtpBin * bin, GstRTCPSDESType type,
for (item = bin->sessions; item; item = g_slist_next (item))
g_object_set (item->data, name, bin->sdes[type], NULL);
GST_OBJECT_UNLOCK (bin);
+
+ GST_RTP_BIN_UNLOCK (bin);
}
static gchar *