Commit 225651e6 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle

tests/audiomixer: fix caps leak

parent b003cb8c
......@@ -1729,6 +1729,7 @@ change_src_caps (GstElement * fakesink, GstBuffer * buffer, GstPad * pad,
"rate", G_TYPE_INT, 10, "channels", G_TYPE_INT, 1, NULL);
g_object_set (capsfilter, "caps", caps, NULL);
gst_caps_unref (caps);
g_signal_connect (fakesink, "handoff", (GCallback) handoff_buffer_cb, NULL);
g_signal_handlers_disconnect_by_func (fakesink, change_src_caps, capsfilter);
}
......
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