diff options
author | Doug Nazar <nazard@nazar.ca> | 2021-05-04 20:47:18 -0400 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-05-05 10:02:48 +0000 |
commit | 6c9d6fd986303c3173cb2a8ef25e12d8bb18a102 (patch) | |
tree | 23b8045088e3a442decd0ed70cfe6e6c1da9c80d | |
parent | 4c6e57ad33ca99cb3913a96a86c53926ba5abf32 (diff) |
rtsp-media: fix leak when adding converter
Free the previous caps before reusing the variable for the converter caps.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/204>
-rw-r--r-- | gst/rtsp-server/rtsp-media-factory-uri.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-media-factory-uri.c b/gst/rtsp-server/rtsp-media-factory-uri.c index 67cdc3e..50089fc 100644 --- a/gst/rtsp-server/rtsp-media-factory-uri.c +++ b/gst/rtsp-server/rtsp-media-factory-uri.c @@ -504,6 +504,7 @@ pad_added_cb (GstElement * uribin, GstPad * pad, GstElement * element) /* unref old pad, we reffed before */ gst_object_unref (pad); + gst_caps_unref (caps); /* continue with new pad and caps */ pad = gst_element_get_static_pad (convert, "src"); |