mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
webrtcbin: Avoid access of freed memory
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2258>
This commit is contained in:
parent
a1100bf559
commit
c88a68c411
1 changed files with 2 additions and 1 deletions
|
@ -1828,7 +1828,6 @@ _find_codec_preferences (GstWebRTCBin * webrtc,
|
|||
|
||||
caps = _query_pad_caps (webrtc, rtp_trans, pad, filter, error);
|
||||
}
|
||||
gst_object_unref (pad);
|
||||
|
||||
if (*error)
|
||||
goto out;
|
||||
|
@ -1882,6 +1881,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