mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
rtpssrcdemux: Use PADs lock
https://bugzilla.gnome.org/show_bug.cgi?id=650916
This commit is contained in:
parent
4c73439ee3
commit
e26b5391c2
1 changed files with 3 additions and 3 deletions
|
@ -167,11 +167,11 @@ find_or_create_demux_pad_for_ssrc (GstRtpSsrcDemux * demux, guint32 ssrc)
|
|||
|
||||
GST_DEBUG_OBJECT (demux, "creating pad for SSRC %08x", ssrc);
|
||||
|
||||
GST_OBJECT_LOCK (demux);
|
||||
GST_PAD_LOCK (demux);
|
||||
|
||||
demuxpad = find_demux_pad_for_ssrc (demux, ssrc);
|
||||
if (demuxpad != NULL) {
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
GST_PAD_UNLOCK (demux);
|
||||
return demuxpad;
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ find_or_create_demux_pad_for_ssrc (GstRtpSsrcDemux * demux, guint32 ssrc)
|
|||
gst_rtp_ssrc_demux_iterate_internal_links_src);
|
||||
gst_pad_set_active (rtcp_pad, TRUE);
|
||||
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
GST_PAD_UNLOCK (demux);
|
||||
|
||||
gst_element_add_pad (GST_ELEMENT_CAST (demux), rtp_pad);
|
||||
gst_element_add_pad (GST_ELEMENT_CAST (demux), rtcp_pad);
|
||||
|
|
Loading…
Reference in a new issue