mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
rtprtxsend: lock access to internal data in sink_event() function
This commit is contained in:
parent
ee8ae3000e
commit
3d9ca102c9
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue