Commit f2638a48 authored by Célestin Marot's avatar Célestin Marot Committed by Tim-Philipp Müller
Browse files

multifilesrc: fix caps leak

since `gst_caps_replace()` and `gst_pad_set_caps()` both ref the caps and neither of them takes the ownership of the caps -> it must be unreffed in `gst_multi_file_src_set_property()`

to test the leak (on Unix): `echo coucou > /tmp/file.txt && GST_TRACERS=leaks GST_DEBUG="GST_TRACER:7" gst-launch-1.0 multifilesrc location=/tmp/file.txt caps='txt' ! fakesink`

Part-of: <!1109>
parent 1343b9bf
Pipeline #486007 waiting for manual action with stages
in 58 seconds
......@@ -342,6 +342,7 @@ gst_multi_file_src_set_property (GObject * object, guint prop_id,
src->fps_n = -1;
src->fps_d = -1;
gst_caps_unref (new_caps);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment