From 3d9ca102c9c06b72c8b2805754edb51e3e3e9fdf Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 14 Jan 2014 12:50:23 +0100 Subject: [PATCH] rtprtxsend: lock access to internal data in sink_event() function --- gst/rtpmanager/gstrtprtxsend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtprtxsend.c b/gst/rtpmanager/gstrtprtxsend.c index 80cb5b9..508a180 100644 --- a/gst/rtpmanager/gstrtprtxsend.c +++ b/gst/rtpmanager/gstrtprtxsend.c @@ -449,12 +449,14 @@ gst_rtp_rtx_send_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) s = gst_caps_get_structure (caps, 0); gst_structure_get_uint (s, "ssrc", &ssrc); + + GST_OBJECT_LOCK (rtx); data = gst_rtp_rtx_send_get_ssrc_data (rtx, ssrc); gst_structure_get_int (s, "clock-rate", &data->clock_rate); GST_DEBUG_OBJECT (rtx, "got clock-rate from caps: %d for ssrc: %u", data->clock_rate, ssrc); - + GST_OBJECT_UNLOCK (rtx); break; } default: -- 2.7.4