[gst-cvs] gst-plugins-bad: rtpbin: use the right lock for the sessions

Wim Taymans wtay at kemper.freedesktop.org
Thu May 21 16:13:30 PDT 2009


Module: gst-plugins-bad
Branch: master
Commit: b3aeee2bf281225495b09216ec3d796e6330c9e1
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=b3aeee2bf281225495b09216ec3d796e6330c9e1

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Fri May 22 01:12:57 2009 +0200

rtpbin: use the right lock for the sessions

Use the right lock when iterating the sessions.

---

 gst/rtpmanager/gstrtpbin.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c
index 11cc2dd..9ab5088 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 *





More information about the Gstreamer-commits mailing list