Commit 45ea930a authored by Wim Taymans's avatar Wim Taymans

rtpbin: fix setting the SDES property

Only the sdes veriable is protected with the object lock.
Use the right object when setting the sdes property.
parent 6e1c7015
......@@ -1767,11 +1767,13 @@ gst_rtp_bin_set_sdes_struct (GstRtpBin * bin, const GstStructure * sdes)
if (bin->sdes)
gst_structure_free (bin->sdes);
bin->sdes = gst_structure_copy (sdes);
/* store in all sessions */
for (item = bin->sessions; item; item = g_slist_next (item))
g_object_set (item->data, "sdes", sdes, NULL);
for (item = bin->sessions; item; item = g_slist_next (item)) {
GstRtpBinSession *session = item->data;
g_object_set (session->session, "sdes", sdes, NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment