mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
webrtc: Reset received_caps when releasing pad
This is to work around a race where the pad is accessed in the webrtc main thread while being released. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2104>
This commit is contained in:
parent
b6114a7fed
commit
3be72a6c86
1 changed files with 1 additions and 0 deletions
|
@ -6268,6 +6268,7 @@ gst_webrtc_bin_release_pad (GstElement * element, GstPad * pad)
|
|||
if (webrtc_pad->trans)
|
||||
gst_object_unref (webrtc_pad->trans);
|
||||
webrtc_pad->trans = NULL;
|
||||
gst_caps_replace (&webrtc_pad->received_caps, NULL);
|
||||
PC_UNLOCK (webrtc);
|
||||
|
||||
_remove_pad (webrtc, webrtc_pad);
|
||||
|
|
Loading…
Reference in a new issue