mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
webrtcbin: Avoid access of freed memory
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2256>
This commit is contained in:
parent
27dea62304
commit
c5b1eecb69
1 changed files with 2 additions and 1 deletions
|
@ -1886,7 +1886,6 @@ _find_codec_preferences (GstWebRTCBin * webrtc,
|
|||
|
||||
caps = _query_pad_caps (webrtc, rtp_trans, pad, filter, error);
|
||||
}
|
||||
gst_object_unref (pad);
|
||||
|
||||
if (*error)
|
||||
goto out;
|
||||
|
@ -1940,6 +1939,8 @@ _find_codec_preferences (GstWebRTCBin * webrtc,
|
|||
|
||||
out:
|
||||
|
||||
if (pad)
|
||||
gst_object_unref (pad);
|
||||
if (codec_preferences)
|
||||
gst_caps_unref (codec_preferences);
|
||||
|
||||
|
|
Loading…
Reference in a new issue