summaryrefslogtreecommitdiff
path: root/gst/rtsp-server/rtsp-media-factory-uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtsp-server/rtsp-media-factory-uri.c')
-rw-r--r--gst/rtsp-server/rtsp-media-factory-uri.c1
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");